discourse/app/assets/javascripts/admin/components/save-controls.js.es6
Joffrey JAFFEUX f9648de897
DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808)
Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com>
Co-Authored-By: David Taylor <david@taylorhq.com>
2019-01-10 11:06:01 +01:00

13 lines
305 B
JavaScript

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