15 lines
384 B
Plaintext
Raw Normal View History

import discourseComputed from "discourse-common/utils/decorators";
import { or } from "@ember/object/computed";
import Component from "@ember/component";
export default Component.extend({
2018-06-15 17:03:24 +02:00
classNames: ["controls"],
buttonDisabled: or("model.isSaving", "saveDisabled"),
@discourseComputed("model.isSaving")
savingText(saving) {
2018-06-15 17:03:24 +02:00
return saving ? "saving" : "save";
}
});