n8n/packages/editor-ui/src/views/SettingsFakeDoorView.vue
Iván Ovejero 5ca2148c7e
refactor(editor): Apply Prettier (no-changelog) (#4920)
*  Adjust `format` script

* 🔥 Remove exemption for `editor-ui`

* 🎨 Prettify

* 👕 Fix lint
2022-12-14 10:04:10 +01:00

50 lines
912 B
Vue

<template>
<feature-coming-soon :featureId="featureId" showTitle />
</template>
<script lang="ts">
import { IFakeDoor } from '@/Interface';
import Vue from 'vue';
import FeatureComingSoon from '@/components/FeatureComingSoon.vue';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui';
export default Vue.extend({
name: 'SettingsFakeDoorView',
components: {
FeatureComingSoon,
},
props: {
featureId: {
type: String,
required: true,
},
},
computed: {
...mapStores(useUIStore),
featureInfo(): IFakeDoor | undefined {
return this.uiStore.getFakeDoorById(this.featureId);
},
},
methods: {
openLinkPage() {
if (this.featureInfo) {
window.open(this.featureInfo.linkURL, '_blank');
}
},
},
});
</script>
<style lang="scss" module>
.header {
display: flex;
align-items: center;
white-space: nowrap;
*:first-child {
flex-grow: 1;
}
}
</style>