web: better label table actions

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-08-05 10:40:44 +02:00
parent 919946609d
commit ddd5047cc3
29 changed files with 76 additions and 61 deletions

View File

@ -29,7 +29,7 @@ export class UserOAuthCodeList extends Table<ExpiringBaseGrantModel> {
new TableColumn(t`Provider`, "provider"),
new TableColumn(t`Expires`, "expires"),
new TableColumn(t`Scopes`, "scope"),
new TableColumn(""),
new TableColumn("Actions"),
];
}

View File

@ -37,7 +37,7 @@ export class UserOAuthRefreshList extends Table<RefreshTokenModel> {
new TableColumn(t`Revoked?`, "revoked"),
new TableColumn(t`Expires`, "expires"),
new TableColumn(t`Scopes`, "scope"),
new TableColumn(""),
new TableColumn("Actions"),
];
}

View File

@ -279,6 +279,10 @@ export abstract class Table<T> extends LitElement {
</button>`;
}
renderToolbarSelected(): TemplateResult {
return html``;
}
renderToolbarAfter(): TemplateResult {
return html``;
}
@ -322,7 +326,7 @@ export abstract class Table<T> extends LitElement {
: html``}
<div class="pf-c-toolbar">
<div class="pf-c-toolbar__content">
${this.renderSearch()}
${this.renderToolbarSelected()} &nbsp; ${this.renderSearch()}
<div class="pf-c-toolbar__bulk-select">${this.renderToolbar()}</div>
${this.renderToolbarAfter()}
<ak-table-pagination

View File

@ -30,7 +30,7 @@ export class AuthenticatedSessionList extends Table<AuthenticatedSession> {
new TableColumn(t`Browser`, "user_agent"),
new TableColumn(t`Device`, "user_agent"),
new TableColumn(t`Expires`, "expires"),
new TableColumn(""),
new TableColumn("Actions"),
];
}

View File

@ -28,7 +28,7 @@ export class UserConsentList extends Table<UserConsent> {
return [
new TableColumn(t`Application`, "application"),
new TableColumn(t`Expires`, "expires"),
new TableColumn(""),
new TableColumn("Actions"),
];
}