FIX: Track `User.status` property (#26941)

Fixes a bug I stumbled upon in dev env:

```
Error: Assertion Failed: You attempted to update <discourse@model:user::ember337>.status to "[object Object]", but it is being tracked by a tracking context, such as a template, computed property, or observer. In order to make sure the context updates properly, you must invalidate the property when updating it. You can mark the property as `@tracked`, or use `@ember/object#set` to do this.
```
This commit is contained in:
Jarek Radosz 2024-05-08 19:07:43 +02:00 committed by GitHub
parent 7bc7ad45bb
commit 1b80ee9eb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ export default class User extends RestModel.extend(Evented) {
@service userTips;
@tracked do_not_disturb_until;
@tracked status;
@userOption("mailing_list_mode") mailing_list_mode;
@userOption("external_links_in_new_tab") external_links_in_new_tab;