mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 10:24:27 +08:00
18 lines
367 B
JavaScript
18 lines
367 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.map(backup => Backup.create(backup)))
|
|
);
|
|
},
|
|
|
|
model() {
|
|
return Backup.find();
|
|
},
|
|
|
|
deactivate() {
|
|
this.messageBus.unsubscribe("/admin/backups");
|
|
}
|
|
});
|