mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 20:34:52 +00:00
FIX: toggle topic status was inverted
This commit is contained in:
parent
424a3b042a
commit
4787e73954
@ -145,7 +145,7 @@ const Topic = Discourse.Model.extend({
|
||||
|
||||
toggleStatus(property) {
|
||||
this.toggleProperty(property);
|
||||
this.saveStatus(property, !this.get(property));
|
||||
this.saveStatus(property, !!this.get(property));
|
||||
},
|
||||
|
||||
saveStatus(property, value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user