1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 07:09:43 +02:00

[WIP] Provide system restore facility

Co-Authored-By: Harvey Kandola <harvey@documize.com>
This commit is contained in:
sauls8t 2018-10-15 18:59:21 +01:00
parent 71a2860716
commit 516140dd7e
12 changed files with 597 additions and 51 deletions

View file

@ -17,15 +17,11 @@ export default Controller.extend({
actions: {
onBackup(spec) {
if(this.get('session.isAdmin')) {
return this.get('global').backup(spec);
}
return this.get('global').backup(spec);
},
onRestore(spec, filedata) {
if(this.get('session.isAdmin')) {
return this.get('global').restore(spec, filedata);
}
return this.get('global').restore(spec, filedata);
}
}
});