Skip to content

Commit 18a5fc1

Browse files
authored
fix: custom enterprise logo can be set again (baserow#5201)
* Custom enterprise logo can be set again * Address feedback
1 parent 17d0860 commit 18a5fc1

3 files changed

Lines changed: 21 additions & 9 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "bug",
3+
"message": "Custom enterprise logo can be set again",
4+
"issue_origin": "github",
5+
"issue_number": null,
6+
"domain": "core",
7+
"bullet_points": [],
8+
"created_at": "2026-04-15"
9+
}

enterprise/web-frontend/modules/baserow_enterprise/components/EnterpriseLogo.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
</template>
88

99
<script>
10+
import baserowLogo from '@baserow/modules/core/static/img/logo.svg?url'
11+
1012
export default {
1113
name: 'EnterpriseLogo',
1214
methods: {
@@ -15,7 +17,6 @@ export default {
1517
return !!settings.co_branding_logo
1618
},
1719
getLogoUrl(parent) {
18-
const baserowLogo = require('@baserow/modules/core/static/img/logo.svg?url')
1920
const settings = this.$store.getters['settings/get']
2021
if (settings.co_branding_logo) {
2122
return settings.co_branding_logo.url

web-frontend/modules/core/components/Logo.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<template>
2-
<!-- TODO MIG component :is="getComponent()" v-if="getComponent()" /-->
32
<!-- must be in sync with modules/baserow_enterprise/components/EnterpriseLogo.vue -->
4-
<div class="logo">
5-
<img
6-
src="@baserow/modules/core/static/img/logo.svg?url"
7-
v-bind="$attrs"
8-
:class="[$attrs.class]"
9-
/>
10-
</div>
3+
<component :is="getComponent()" v-if="getComponent()"></component>
4+
<template v-else>
5+
<div class="logo">
6+
<img
7+
src="@baserow/modules/core/static/img/logo.svg?url"
8+
v-bind="$attrs"
9+
:class="[$attrs.class]"
10+
/>
11+
</div>
12+
</template>
1113
</template>
1214

1315
<script>

0 commit comments

Comments
 (0)