mirror of
https://github.com/discourse/discourse.git
synced 2025-01-20 14:52:02 +08:00
11 lines
337 B
JavaScript
11 lines
337 B
JavaScript
import Controller from "@ember/controller";
|
|
export default Controller.extend({
|
|
noOperationIsRunning: Ember.computed.not("model.isOperationRunning"),
|
|
rollbackEnabled: Ember.computed.and(
|
|
"model.canRollback",
|
|
"model.restoreEnabled",
|
|
"noOperationIsRunning"
|
|
),
|
|
rollbackDisabled: Ember.computed.not("rollbackEnabled")
|
|
});
|