discourse/app/assets/javascripts/admin/routes/admin-backups-index.js.es6

16 lines
319 B
Plaintext
Raw Normal View History

import Backup from 'admin/models/backup';
export default Ember.Route.extend({
2018-01-31 19:05:06 +08:00
activate() {
this.messageBus.subscribe("/admin/backups", backups => this.controller.set("model", backups));
},
model() {
return Backup.find();
2018-01-31 19:05:06 +08:00
},
deactivate() {
this.messageBus.unsubscribe("/admin/backups");
}
});