n8n/packages/editor-ui/src/components/Logo.vue

29 lines
578 B
Vue

<template>
<img :src="logoPath" :class="$style.img" alt="n8n.io" />
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useRootStore } from '@/stores/root.store';
import { useUIStore } from '@/stores/ui.store';
export default defineComponent({
computed: {
...mapStores(useRootStore, useUIStore),
basePath(): string {
return this.rootStore.baseUrl;
},
logoPath(): string {
return this.basePath + this.uiStore.logo;
},
},
});
</script>
<style lang="scss" module>
.img {
height: 32px;
}
</style>