discourse/app/assets/javascripts/admin/components/save-controls.js.es6

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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({
classNames: ["controls"],
buttonDisabled: or("model.isSaving", "saveDisabled"),
@discourseComputed("model.isSaving")
savingText(saving) {
return saving ? "saving" : "save";
}
});