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:
parent
e2da72b76c
commit
5023ff480e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue