DEV: attemps to limit Discourse.User.current() usage (#7943)

This commit is contained in:
Joffrey JAFFEUX
2019-07-26 11:20:11 +02:00
committed by GitHub
parent 0603636cea
commit fe7f0982af
14 changed files with 19 additions and 42 deletions

View File

@ -29,7 +29,7 @@ export default Ember.Controller.extend({
I18n.t("yes_value"),
confirmed => {
if (confirmed) {
Discourse.User.currentProp("hideReadOnlyAlert", true);
this.set("currentUser.hideReadOnlyAlert", true);
this._toggleReadOnlyMode(true);
}
}