This commit is contained in:
Jesper Møller Jensen
2023-05-01 16:33:14 +12:00
parent 26a142b4d3
commit fee6c6fb90

View File

@@ -250,7 +250,7 @@ export class UmbUserWorkspaceEditElement extends UmbLitElement {
if (this._user.state === UserStateModel.DISABLED) {
buttons.push(
html`
<uui-button @click=${this.#onUserStatusChange} look="primary" color="positive" label="Enable"></uui-button>
<uui-button @click=${this.#onUserStatusChange} look="secondary" color="positive" label="Enable"></uui-button>
`
);
}
@@ -258,21 +258,21 @@ export class UmbUserWorkspaceEditElement extends UmbLitElement {
if (this._user.state === UserStateModel.ACTIVE || this._user.state === UserStateModel.INACTIVE) {
buttons.push(
html`
<uui-button @click=${this.#onUserStatusChange} look="primary" color="warning" label="Disable"></uui-button>
<uui-button @click=${this.#onUserStatusChange} look="secondary" color="warning" label="Disable"></uui-button>
`
);
}
if (this._currentUser?.id !== this._user?.id) {
const button = html`
<uui-button @click=${this.#onUserDelete} look="primary" color="danger" label="Delete User"></uui-button>
<uui-button @click=${this.#onUserDelete} look="secondary" color="danger" label="Delete User"></uui-button>
`;
buttons.push(button);
}
buttons.push(
html`<uui-button @click=${this.#onPasswordChange} look="primary" label="Change password"></uui-button>`
html`<uui-button @click=${this.#onPasswordChange} look="secondary" label="Change password"></uui-button>`
);
return buttons;