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
12 lines
343 B
JavaScript
12 lines
343 B
JavaScript
import { not, and } from "@ember/object/computed";
|
|
import Controller from "@ember/controller";
|
|
export default Controller.extend({
|
|
noOperationIsRunning: not("model.isOperationRunning"),
|
|
rollbackEnabled: and(
|
|
"model.canRollback",
|
|
"model.restoreEnabled",
|
|
"noOperationIsRunning"
|
|
),
|
|
rollbackDisabled: not("rollbackEnabled")
|
|
});
|