mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
Rename .js.es6
to .js
in the admin application
This commit is contained in:
11
app/assets/javascripts/admin/controllers/admin-backups.js
Normal file
11
app/assets/javascripts/admin/controllers/admin-backups.js
Normal file
@ -0,0 +1,11 @@
|
||||
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")
|
||||
});
|
Reference in New Issue
Block a user