Browse Source
Merge pull request #2919 from Budibase/remove-cloud-updates
Remove update screen in the cloud
pull/2923/head
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
6 deletions
-
packages/builder/src/pages/builder/portal/_layout.svelte
-
packages/builder/src/pages/builder/portal/settings/update.svelte
|
|
|
@ -46,11 +46,16 @@ |
|
|
|
title: "Theming", |
|
|
|
href: "/builder/portal/settings/theming", |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "Updates", |
|
|
|
href: "/builder/portal/settings/update", |
|
|
|
}, |
|
|
|
]) |
|
|
|
|
|
|
|
if (!$adminStore.cloud) { |
|
|
|
menu = menu.concat([ |
|
|
|
{ |
|
|
|
title: "Updates", |
|
|
|
href: "/builder/portal/settings/update", |
|
|
|
}, |
|
|
|
]) |
|
|
|
} |
|
|
|
} else { |
|
|
|
menu = menu.concat([ |
|
|
|
{ |
|
|
|
|
|
|
|
@ -10,14 +10,14 @@ |
|
|
|
Label, |
|
|
|
} from "@budibase/bbui" |
|
|
|
import api from "builderStore/api" |
|
|
|
import { auth } from "stores/portal" |
|
|
|
import { auth, admin } from "stores/portal" |
|
|
|
import { redirect } from "@roxi/routify" |
|
|
|
|
|
|
|
let version |
|
|
|
|
|
|
|
// Only admins allowed here |
|
|
|
$: { |
|
|
|
if (!$auth.isAdmin) { |
|
|
|
if (!$auth.isAdmin || $admin.cloud) { |
|
|
|
$redirect("../../portal") |
|
|
|
} |
|
|
|
} |
|
|
|
|