DEV: Replace save-button partial with a component (#9066)

This commit is contained in:
Penar Musaraj
2020-03-10 09:37:54 -04:00
committed by GitHub
parent e69b6379ad
commit 68328d2d64
23 changed files with 40 additions and 100 deletions
@@ -1,14 +0,0 @@
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";
}
});