1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-10-18 17:10:11 +00:00

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.
This commit is contained in:
Harvey Tindall 2024-10-10 13:31:58 +01:00
parent 39f6d14163
commit bb41bc3844
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -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")