feat(web-organizations): add organization detail editing and isolate detail view state from global navigation
This commit is contained in:
@@ -152,7 +152,7 @@ export class SgAppShell extends DeesElement {
|
||||
this.fetchAuthProviders();
|
||||
|
||||
// Resolve async view tab imports
|
||||
const allTabs = await Promise.all(
|
||||
this.allResolvedViewTabs = await Promise.all(
|
||||
this.viewTabs.map(async (tab) => ({
|
||||
name: tab.name,
|
||||
iconName: tab.iconName,
|
||||
@@ -162,8 +162,8 @@ export class SgAppShell extends DeesElement {
|
||||
|
||||
// Filter admin tab based on user role
|
||||
this.resolvedViewTabs = this.loginState.identity?.isSystemAdmin
|
||||
? allTabs
|
||||
: allTabs.filter((t) => t.name !== 'Admin');
|
||||
? this.allResolvedViewTabs
|
||||
: this.allResolvedViewTabs.filter((t) => t.name !== 'Admin');
|
||||
|
||||
this.requestUpdate();
|
||||
await this.updateComplete;
|
||||
|
||||
Reference in New Issue
Block a user