Allow creators to see dev portal and use onboarding
This commit is contained in:
parent
24e6b3103d
commit
7984ecde05
|
@ -16,7 +16,7 @@
|
|||
let activeTab = "Apps"
|
||||
|
||||
$: $url(), updateActiveTab($menu)
|
||||
$: isOnboarding = !$apps.length && sdk.users.isGlobalBuilder($auth.user)
|
||||
$: isOnboarding = !$apps.length && sdk.users.hasBuilderPermissions($auth.user)
|
||||
|
||||
const updateActiveTab = menu => {
|
||||
for (let entry of menu) {
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
}
|
||||
|
||||
// Go to new app page if no apps exists
|
||||
if (!$apps.length && sdk.users.isGlobalBuilder($auth.user)) {
|
||||
if (!$apps.length && sdk.users.hasBuilderPermissions($auth.user)) {
|
||||
$redirect("./onboarding")
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
goToApp()
|
||||
} catch (e) {
|
||||
loading = false
|
||||
notifications.error("There was a problem creating your app")
|
||||
notifications.error(e.message || "There was a problem creating your app")
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue