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
This commit is contained in:
parent
325355d991
commit
2364433932
@ -45,7 +45,7 @@ export class OrgsList extends LiteElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<sl-dialog
|
<btrix-dialog
|
||||||
label=${msg(str`Quotas for: ${this.currOrg.name}`)}
|
label=${msg(str`Quotas for: ${this.currOrg.name}`)}
|
||||||
?open=${!!this.currOrg}
|
?open=${!!this.currOrg}
|
||||||
@sl-request-close=${() => (this.currOrg = null)}
|
@sl-request-close=${() => (this.currOrg = null)}
|
||||||
@ -54,14 +54,20 @@ export class OrgsList extends LiteElement {
|
|||||||
return html`
|
return html`
|
||||||
<sl-input
|
<sl-input
|
||||||
name=${key}
|
name=${key}
|
||||||
|
label=${msg("Max Concurrent Crawls")}
|
||||||
value=${value}
|
value=${value}
|
||||||
type="number"
|
type="number"
|
||||||
@sl-input="${this.onUpdateQuota}"
|
@sl-input="${this.onUpdateQuota}"
|
||||||
><span slot="prefix">${key}</span></sl-input>`;
|
></sl-input>`;
|
||||||
})}
|
})}
|
||||||
<sl-button @click="${this.onSubmitQuotas}" class="mt-2" variant="primary">Update Quotas</sl-button>
|
<div slot="footer" class="flex justify-end">
|
||||||
|
<sl-button
|
||||||
</sl-dialog>
|
size="small"
|
||||||
|
@click="${this.onSubmitQuotas}"
|
||||||
|
variant="primary">${msg("Update Quotas")}
|
||||||
|
</sl-button>
|
||||||
|
</div>
|
||||||
|
</btrix-dialog>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,14 +116,12 @@ export class OrgsList extends LiteElement {
|
|||||||
${defaultLabel}${org.name}
|
${defaultLabel}${org.name}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row items-center">
|
<div class="flex flex-row items-center">
|
||||||
<sl-button size="small" class="mr-3" @click="${this.showQuotas(org)}">
|
<div class="text-s font-monostyle text-neutral-400 mr-4">
|
||||||
<sl-icon name="gear" slot="prefix"></sl-icon>
|
|
||||||
</sl-button>
|
|
||||||
<div class="text-xs text-neutral-400">
|
|
||||||
${memberCount === 1
|
${memberCount === 1
|
||||||
? msg(`1 member`)
|
? msg(`1 member`)
|
||||||
: msg(str`${memberCount} members`)}
|
: msg(str`${memberCount} members`)}
|
||||||
</div>
|
</div>
|
||||||
|
<sl-icon-button name="gear" slot="prefix" @click="${this.showQuotas(org)}"></sl-icon-button>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
`;
|
`;
|
||||||
|
|||||||
@ -126,7 +126,7 @@ export class Home extends LiteElement {
|
|||||||
</div>
|
</div>
|
||||||
<div class="grow-0 mt-2 md:mt-0 text-right">
|
<div class="grow-0 mt-2 md:mt-0 text-right">
|
||||||
<sl-button variant="neutral" type="submit">
|
<sl-button variant="neutral" type="submit">
|
||||||
<sl-icon slot="prefix" name="arrow-right-circle"></sl-icon>
|
<sl-icon slot="suffix" name="arrow-right"></sl-icon>
|
||||||
${msg("Go")}</sl-button
|
${msg("Go")}</sl-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@ -137,12 +137,13 @@ export class Home extends LiteElement {
|
|||||||
<div class="grid grid-cols-5 gap-8">
|
<div class="grid grid-cols-5 gap-8">
|
||||||
<div class="col-span-5 md:col-span-3">
|
<div class="col-span-5 md:col-span-3">
|
||||||
<section>
|
<section>
|
||||||
<header class="flex items-start justify-between">
|
<header class="flex items-start justify-between items-center">
|
||||||
<h2 class="text-lg font-medium mb-3 mt-2">
|
<h2 class="text-lg font-medium mb-3 mt-2">
|
||||||
${msg("All Organizations")}
|
${msg("All Organizations")}
|
||||||
</h2>
|
</h2>
|
||||||
<sl-button
|
<sl-button
|
||||||
variant="primary"
|
variant="primary"
|
||||||
|
size="small"
|
||||||
@click=${() => (this.isAddingOrg = true)}
|
@click=${() => (this.isAddingOrg = true)}
|
||||||
>
|
>
|
||||||
<sl-icon slot="prefix" name="plus-lg"></sl-icon>
|
<sl-icon slot="prefix" name="plus-lg"></sl-icon>
|
||||||
|
|||||||
@ -293,13 +293,13 @@ export class OrgSettings extends LiteElement {
|
|||||||
})
|
})
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<sl-icon name="trash"></sl-icon>
|
<sl-icon name="trash3"></sl-icon>
|
||||||
</btrix-button>`;
|
</btrix-button>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
private renderRemoveInviteButton(invite: Invite) {
|
private renderRemoveInviteButton(invite: Invite) {
|
||||||
return html`<btrix-button icon @click=${() => this.removeInvite(invite)}>
|
return html`<btrix-button icon @click=${() => this.removeInvite(invite)}>
|
||||||
<sl-icon name="trash"></sl-icon>
|
<sl-icon name="trash3"></sl-icon>
|
||||||
</btrix-button>`;
|
</btrix-button>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -837,7 +837,7 @@ export class WorkflowDetail extends LiteElement {
|
|||||||
style="--sl-color-neutral-700: var(--danger)"
|
style="--sl-color-neutral-700: var(--danger)"
|
||||||
@click=${() => this.deleteCrawl(crawl)}
|
@click=${() => this.deleteCrawl(crawl)}
|
||||||
>
|
>
|
||||||
<sl-icon name="trash" slot="prefix"></sl-icon>
|
<sl-icon name="trash3" slot="prefix"></sl-icon>
|
||||||
${msg("Delete Crawl")}
|
${msg("Delete Crawl")}
|
||||||
</sl-menu-item>
|
</sl-menu-item>
|
||||||
</sl-menu>
|
</sl-menu>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user