mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:40:42 +08:00
a8a76198b1
Use imports instead.
14 lines
341 B
JavaScript
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";
|
|
}
|
|
});
|