1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/enterprise/web-frontend/modules/baserow_enterprise/components/EnterpriseLogo.vue
2024-03-15 14:10:47 +00:00

34 lines
890 B
Vue

<template functional>
<!-- must be in sync with `modules/core/components/Logo.vue` apart from the label. -->
<div class="logo">
<div v-if="$options.methods.showLabel(parent)" class="logo__label">
by Baserow
</div>
<img
:src="$options.methods.getLogoUrl(parent)"
v-bind="props"
:class="[data.staticClass, data.class]"
/>
</div>
</template>
<script>
export default {
name: 'EnterpriseLogo',
methods: {
showLabel(parent) {
const settings = parent.$store.getters['settings/get']
return !!settings.co_branding_logo
},
getLogoUrl(parent) {
const baserowLogo = require('@baserow/modules/core/static/img/logo.svg')
const settings = parent.$store.getters['settings/get']
if (settings.co_branding_logo) {
return settings.co_branding_logo.url
}
return baserowLogo
},
},
}
</script>