Different fix (#7815)

This commit is contained in:
Osama Sayegh
2019-07-02 04:53:16 +03:00
committed by Sam
parent 4dcc5f16f1
commit f1c67729de
10 changed files with 78 additions and 12 deletions

View File

@ -1,9 +1,15 @@
import { popupAjaxError } from "discourse/lib/ajax-error";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import computed from "ember-addons/ember-computed-decorators";
export default Ember.Controller.extend(bufferedProperty("siteText"), {
saved: false,
@computed("buffered.value")
saveDisabled(value) {
return this.siteText.value === value;
},
actions: {
saveChanges() {
const buffered = this.buffered;