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.
main
Harvey Tindall 1 month ago
parent 39f6d14163
commit bb41bc3844
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

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

Loading…
Cancel
Save