diff --git a/html/admin.html b/html/admin.html index 80cdd70..0783bce 100644 --- a/html/admin.html +++ b/html/admin.html @@ -802,7 +802,7 @@ {{ .quantityStrings.deleteUser.Singular }}
- +
diff --git a/ts/modules/accounts.ts b/ts/modules/accounts.ts index 8820284..034d85e 100644 --- a/ts/modules/accounts.ts +++ b/ts/modules/accounts.ts @@ -112,10 +112,10 @@ class user implements User, SearchableItem { get admin(): boolean { return this._admin.classList.contains("chip"); } set admin(state: boolean) { if (state) { - this._admin.classList.add("chip", "~info"); + this._admin.classList.remove("hidden") this._admin.textContent = window.lang.strings("admin"); } else { - this._admin.classList.remove("chip", "~info"); + this._admin.classList.add("hidden") this._admin.textContent = ""; } } @@ -135,10 +135,10 @@ class user implements User, SearchableItem { get disabled(): boolean { return this._disabled.classList.contains("chip"); } set disabled(state: boolean) { if (state) { - this._disabled.classList.add("chip", "~warning"); + this._disabled.classList.remove("hidden") this._disabled.textContent = window.lang.strings("disabled"); } else { - this._disabled.classList.remove("chip", "~warning"); + this._disabled.classList.add("hidden") this._disabled.textContent = ""; } } @@ -185,7 +185,7 @@ class user implements User, SearchableItem { if (!telegram && !discord && !matrix && !email) return; let innerHTML = ` - `; if (window.jellyfinLogin) { @@ -501,7 +504,7 @@ class user implements User, SearchableItem { `; } innerHTML += ` - `; @@ -554,6 +557,7 @@ class user implements User, SearchableItem { container: this._label, onSet: this._updateLabel, customContainerHTML: ``, + buttonOnLeft: true, clickAwayShouldSave: false, }); diff --git a/ts/modules/ui.ts b/ts/modules/ui.ts index 575aac4..c92031e 100644 --- a/ts/modules/ui.ts +++ b/ts/modules/ui.ts @@ -27,7 +27,7 @@ export class HiddenInputField { this._c.input = ``; } this._c.container.innerHTML = ` -
+
${this._c.buttonOnLeft ? "" : this._c.input} ${this._c.buttonOnLeft ? "" : this._c.customContainerHTML}
- - - +
+ + + +
+