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

23 lines
493 B
Vue

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