FEATURE: Introduce ignore duration selection (#7266)

* FEATURE: Introducing new UI for tracking User's ignored or muted states
This commit is contained in:
Tarek Khalil
2019-03-29 10:14:53 +00:00
committed by GitHub
parent 961fb2c70e
commit b1cb95fc23
14 changed files with 201 additions and 62 deletions

View File

@ -615,10 +615,10 @@ const User = RestModel.extend({
}
},
updateNotificationLevel(level) {
updateNotificationLevel(level, expiringAt) {
return ajax(`${userPath(this.get("username"))}/notification_level.json`, {
type: "PUT",
data: { notification_level: level }
data: { notification_level: level, expiring_at: expiringAt }
});
},