mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
2ae21e9c35
* DEV: Import every instance of Ember.computed function * export default for Ember.computed
15 lines
371 B
JavaScript
15 lines
371 B
JavaScript
import { or } from "@ember/object/computed";
|
|
import Component from "@ember/component";
|
|
import computed from "ember-addons/ember-computed-decorators";
|
|
|
|
export default Component.extend({
|
|
classNames: ["controls"],
|
|
|
|
buttonDisabled: or("model.isSaving", "saveDisabled"),
|
|
|
|
@computed("model.isSaving")
|
|
savingText(saving) {
|
|
return saving ? "saving" : "save";
|
|
}
|
|
});
|