discourse/app/assets/javascripts/admin/components/save-controls.js.es6
2019-10-23 12:30:52 -04:00

14 lines
341 B
JavaScript

import Component from "@ember/component";
import computed from "ember-addons/ember-computed-decorators";
export default Component.extend({
classNames: ["controls"],
buttonDisabled: Ember.computed.or("model.isSaving", "saveDisabled"),
@computed("model.isSaving")
savingText(saving) {
return saving ? "saving" : "save";
}
});