Use redirect instead of goto
This commit is contained in:
parent
8515221cdf
commit
f8ce1ee365
2 changed files with 2 additions and 3 deletions
|
@ -5,7 +5,6 @@
|
||||||
import { CookieUtils, Constants } from "@budibase/frontend-core"
|
import { CookieUtils, Constants } from "@budibase/frontend-core"
|
||||||
import { API } from "api"
|
import { API } from "api"
|
||||||
import Branding from "./Branding.svelte"
|
import Branding from "./Branding.svelte"
|
||||||
import { goto } from "@roxi/routify"
|
|
||||||
|
|
||||||
let loaded = false
|
let loaded = false
|
||||||
|
|
||||||
|
@ -18,7 +17,7 @@
|
||||||
|
|
||||||
$: useAccountPortal = cloud && !$admin.disableAccountPortal
|
$: useAccountPortal = cloud && !$admin.disableAccountPortal
|
||||||
|
|
||||||
navigation.actions.init($goto)
|
navigation.actions.init($redirect)
|
||||||
|
|
||||||
const validateTenantId = async () => {
|
const validateTenantId = async () => {
|
||||||
const host = window.location.host
|
const host = window.location.host
|
||||||
|
|
|
@ -5,7 +5,7 @@ export function createNavigationStore() {
|
||||||
initialisated: false,
|
initialisated: false,
|
||||||
goto: undefined,
|
goto: undefined,
|
||||||
})
|
})
|
||||||
const { set, subscribe, get } = store
|
const { set, subscribe } = store
|
||||||
|
|
||||||
const init = gotoFunc => {
|
const init = gotoFunc => {
|
||||||
if (typeof gotoFunc !== "function") {
|
if (typeof gotoFunc !== "function") {
|
||||||
|
|
Loading…
Reference in a new issue