@@ -90,29 +92,19 @@ export class Home extends LiteElement {
`;
}
- let title: string | undefined;
- let content: TemplateResult<1> | undefined;
-
- if (this.userInfo.isSuperAdmin) {
- title = msg("Welcome");
- content = this.renderAdminOrgs();
- } else {
- title = msg("Organizations");
- content = this.renderLoggedInNonAdmin();
- }
-
return html`
- ${title}
+ ${msg("Welcome")}
- ${content}
+ ${this.renderAdminOrgs()}
+ ${this.renderAddOrgDialog()}
`;
}
@@ -182,8 +174,6 @@ export class Home extends LiteElement {
-
- ${this.renderAddOrgDialog()}
`;
}
@@ -277,24 +267,6 @@ export class Home extends LiteElement {
`;
}
- private renderLoggedInNonAdmin() {
- if (this.orgList && !this.orgList.length) {
- return html`