n8n/packages/editor-ui/src/components/Logo.vue
Iván Ovejero d5c44987f4
refactor(editor): Add infix to Pinia stores (no-changelog) (#6149)
*  Add infix to Pinia stores

*  Fix paths in mocks

* 🐛 Fix import
2023-05-05 10:41:54 +02:00

25 lines
474 B
Vue

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