From 2364433932d980f9a548fa9f0940f6bff8ed874a Mon Sep 17 00:00:00 2001 From: Henry Wilkinson Date: Sat, 10 Jun 2023 22:21:34 -0400 Subject: [PATCH] Admin Panel Minor Frontend Style Updates (#915) - Unifies trash icons on all pages to use trash3 (there were a few stragglers!) - Brings styling of org quotas dialogue in-line with the rest of our dialogues - Adds missing localization strings - Swaps button with icon button to match table row action styling elsewhere --- frontend/src/components/orgs-list.ts | 22 +++++++++++++--------- frontend/src/pages/home.ts | 5 +++-- frontend/src/pages/org/settings.ts | 4 ++-- frontend/src/pages/org/workflow-detail.ts | 2 +- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/orgs-list.ts b/frontend/src/components/orgs-list.ts index 41111df1..ea1416a0 100644 --- a/frontend/src/components/orgs-list.ts +++ b/frontend/src/components/orgs-list.ts @@ -45,7 +45,7 @@ export class OrgsList extends LiteElement { } return html` - (this.currOrg = null)} @@ -54,14 +54,20 @@ export class OrgsList extends LiteElement { return html` ${key}`; + >`; })} - Update Quotas - - +
+ ${msg("Update Quotas")} + +
+ `; } @@ -110,14 +116,12 @@ export class OrgsList extends LiteElement { ${defaultLabel}${org.name}
- - - -
+
${memberCount === 1 ? msg(`1 member`) : msg(str`${memberCount} members`)}
+
`; diff --git a/frontend/src/pages/home.ts b/frontend/src/pages/home.ts index 0596f322..e19e42a0 100644 --- a/frontend/src/pages/home.ts +++ b/frontend/src/pages/home.ts @@ -126,7 +126,7 @@ export class Home extends LiteElement {
- + ${msg("Go")}
@@ -137,12 +137,13 @@ export class Home extends LiteElement {
-
+

${msg("All Organizations")}

(this.isAddingOrg = true)} > diff --git a/frontend/src/pages/org/settings.ts b/frontend/src/pages/org/settings.ts index 2c185729..ef24f9dc 100644 --- a/frontend/src/pages/org/settings.ts +++ b/frontend/src/pages/org/settings.ts @@ -293,13 +293,13 @@ export class OrgSettings extends LiteElement { }) )} > - + `; } private renderRemoveInviteButton(invite: Invite) { return html` this.removeInvite(invite)}> - + `; } diff --git a/frontend/src/pages/org/workflow-detail.ts b/frontend/src/pages/org/workflow-detail.ts index 798c237d..33db9712 100644 --- a/frontend/src/pages/org/workflow-detail.ts +++ b/frontend/src/pages/org/workflow-detail.ts @@ -837,7 +837,7 @@ export class WorkflowDetail extends LiteElement { style="--sl-color-neutral-700: var(--danger)" @click=${() => this.deleteCrawl(crawl)} > - + ${msg("Delete Crawl")}