FIX: Ensure dnd icon is updated immediately in glimmer header (#26221)

Adds `@tracked` to the relevant property on the User model so that it is autotracked correctly via the function call `glimmer-header/user-dropdown/notifications#isInDoNotDisturb` -> `models/user#isInDoNotDisturb`.
This commit is contained in:
David Taylor 2024-03-18 14:50:23 +00:00 committed by GitHub
parent e2da72b76c
commit 5023ff480e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import { tracked } from "@glimmer/tracking";
import { getOwner, setOwner } from "@ember/application";
import { A } from "@ember/array";
import EmberObject, { computed, get, getProperties } from "@ember/object";
@ -175,6 +176,8 @@ export default class User extends RestModel.extend(Evented) {
@service appEvents;
@service userTips;
@tracked do_not_disturb_until;
@userOption("mailing_list_mode") mailing_list_mode;
@userOption("external_links_in_new_tab") external_links_in_new_tab;
@userOption("enable_quoting") enable_quoting;