DEV: use discourse-common import over ember-addons

This commit is contained in:
Jeff Wong 2020-04-20 16:21:43 -07:00
parent 186b94c384
commit ec025b4c93
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { import {
default as computed, default as discourseComputed,
on on
} from "ember-addons/ember-computed-decorators"; } from "discourse-common/utils/decorators";
import { popupAjaxError } from "discourse/lib/ajax-error"; import { popupAjaxError } from "discourse/lib/ajax-error";
export default Ember.Controller.extend({ export default Ember.Controller.extend({
@ -14,7 +14,7 @@ export default Ember.Controller.extend({
this.setProperties({ newNote: null, saving: false, callback: null }); this.setProperties({ newNote: null, saving: false, callback: null });
}, },
@computed("newNote", "saving") @discourseComputed("newNote", "saving")
attachDisabled(newNote, saving) { attachDisabled(newNote, saving) {
return saving || !newNote || newNote.length === 0; return saving || !newNote || newNote.length === 0;
}, },