mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 00:25:53 +08:00
15 lines
384 B
JavaScript
15 lines
384 B
JavaScript
import discourseComputed from "discourse-common/utils/decorators";
|
|
import { or } from "@ember/object/computed";
|
|
import Component from "@ember/component";
|
|
|
|
export default Component.extend({
|
|
classNames: ["controls"],
|
|
|
|
buttonDisabled: or("model.isSaving", "saveDisabled"),
|
|
|
|
@discourseComputed("model.isSaving")
|
|
savingText(saving) {
|
|
return saving ? "saving" : "save";
|
|
}
|
|
});
|