web/admin: add button to create prompt on PromptStageForm
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -13,7 +13,7 @@ export const SIDEBAR_ITEMS: SidebarItem[] = [
|
||||
new SidebarItem(t`Overview`, "/administration/overview"),
|
||||
new SidebarItem(t`System Tasks`, "/administration/system-tasks"),
|
||||
).when((): Promise<boolean> => {
|
||||
return me().then(u => u.user.isSuperuser||false);
|
||||
return me().then(u => u.user.isSuperuser || false);
|
||||
}),
|
||||
new SidebarItem(t`Resources`).children(
|
||||
new SidebarItem(t`Applications`, "/core/applications").activeWhen(
|
||||
@ -28,7 +28,7 @@ export const SIDEBAR_ITEMS: SidebarItem[] = [
|
||||
new SidebarItem(t`Outposts`, "/outpost/outposts"),
|
||||
new SidebarItem(t`Outpost Service Connections`, "/outpost/service-connections"),
|
||||
).when((): Promise<boolean> => {
|
||||
return me().then(u => u.user.isSuperuser||false);
|
||||
return me().then(u => u.user.isSuperuser || false);
|
||||
}),
|
||||
new SidebarItem(t`Events`).children(
|
||||
new SidebarItem(t`Logs`, "/events/log").activeWhen(
|
||||
@ -43,7 +43,7 @@ export const SIDEBAR_ITEMS: SidebarItem[] = [
|
||||
new SidebarItem(t`Policies`, "/policy/policies"),
|
||||
new SidebarItem(t`Property Mappings`, "/core/property-mappings"),
|
||||
).when((): Promise<boolean> => {
|
||||
return me().then(u => u.user.isSuperuser||false);
|
||||
return me().then(u => u.user.isSuperuser || false);
|
||||
}),
|
||||
new SidebarItem(t`Flows`).children(
|
||||
new SidebarItem(t`Flows`, "/flow/flows").activeWhen(`^/flow/flows/(?<slug>${SLUG_REGEX})$`),
|
||||
@ -51,7 +51,7 @@ export const SIDEBAR_ITEMS: SidebarItem[] = [
|
||||
new SidebarItem(t`Prompts`, "/flow/stages/prompts"),
|
||||
new SidebarItem(t`Invitations`, "/flow/stages/invitations"),
|
||||
).when((): Promise<boolean> => {
|
||||
return me().then(u => u.user.isSuperuser||false);
|
||||
return me().then(u => u.user.isSuperuser || false);
|
||||
}),
|
||||
new SidebarItem(t`Identity & Cryptography`).children(
|
||||
new SidebarItem(t`Users`, "/identity/users").activeWhen(`^/identity/users/(?<id>${ID_REGEX})$`),
|
||||
@ -59,7 +59,7 @@ export const SIDEBAR_ITEMS: SidebarItem[] = [
|
||||
new SidebarItem(t`Certificates`, "/crypto/certificates"),
|
||||
new SidebarItem(t`Tokens`, "/core/tokens"),
|
||||
).when((): Promise<boolean> => {
|
||||
return me().then(u => u.user.isSuperuser||false);
|
||||
return me().then(u => u.user.isSuperuser || false);
|
||||
}),
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user