From bb41bc3844641575600812d986086ca16169bc2f Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 10 Oct 2024 13:31:58 +0100 Subject: [PATCH] fix disable/re-enable text/color on button on accounts account-disabled-ness was/is derived from a class on the badge in the account's row, which after a UI change was removed. Now depends on the correct (and more likely to remain throughout changes) "hidden" class. For #370. --- ts/modules/accounts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/modules/accounts.ts b/ts/modules/accounts.ts index 8205a6f..b9da9e5 100644 --- a/ts/modules/accounts.ts +++ b/ts/modules/accounts.ts @@ -132,7 +132,7 @@ class user implements User, SearchableItem { } } - get disabled(): boolean { return this._disabled.classList.contains("chip"); } + get disabled(): boolean { return !(this._disabled.classList.contains("hidden")); } set disabled(state: boolean) { if (state) { this._disabled.classList.remove("hidden")