discourse/app/assets/javascripts/admin/routes/admin-backups-index.js.es6
2018-06-15 17:03:24 +02:00

18 lines
330 B
JavaScript

import Backup from "admin/models/backup";
export default Ember.Route.extend({
activate() {
this.messageBus.subscribe("/admin/backups", backups =>
this.controller.set("model", backups)
);
},
model() {
return Backup.find();
},
deactivate() {
this.messageBus.unsubscribe("/admin/backups");
}
});