Feedback updates

This commit is contained in:
Dean 2023-03-28 11:18:49 +01:00
parent 118f250edb
commit c914ded42c
4 changed files with 8 additions and 8 deletions

View File

@ -3,12 +3,10 @@
import { onMount } from "svelte" import { onMount } from "svelte"
let loaded = false let loaded = false
let platformTitle = null
$: platformTitleText = $organisation.platformTitle $: platformTitleText = $organisation.platformTitle
$: platformTitleText, $: platformTitle =
(platformTitle = !$auth.user && platformTitleText ? platformTitleText : "Budibase"
!$auth.user && platformTitleText ? platformTitleText : "Budibase")
$: faviconUrl = $organisation.faviconUrl || "https://i.imgur.com/Xhdt1YP.png" $: faviconUrl = $organisation.faviconUrl || "https://i.imgur.com/Xhdt1YP.png"

View File

@ -5,5 +5,5 @@ import { orgStore } from "./org"
export async function initialise() { export async function initialise() {
await routeStore.actions.fetchRoutes() await routeStore.actions.fetchRoutes()
await appStore.actions.fetchAppDefinition() await appStore.actions.fetchAppDefinition()
await orgStore.init() await orgStore.actions.init()
} }

View File

@ -20,7 +20,9 @@ const createOrgStore = () => {
return { return {
subscribe, subscribe,
init, actions: {
init,
},
} }
} }

View File

@ -150,9 +150,9 @@ const createScreenStore = () => {
navigationSettings.title = $appStore.application?.name navigationSettings.title = $appStore.application?.name
} }
// Default to the org logo
if (!navigationSettings.logoUrl) { if (!navigationSettings.logoUrl) {
navigationSettings.logoUrl = navigationSettings.logoUrl = $orgStore?.logoUrl
$orgStore?.logoUrl || navigationSettings.logoUrl
} }
} }
activeLayout = { activeLayout = {