mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
16 lines
319 B
JavaScript
16 lines
319 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");
|
|
}
|
|
});
|