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:
parent
71a2860716
commit
516140dd7e
12 changed files with 597 additions and 51 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue