added cloud backup and other stuff

This commit is contained in:
Shane Harris
2022-01-28 10:33:57 +01:00
parent 877fb5a320
commit dc8a1d147a
8 changed files with 122 additions and 42 deletions
@@ -21,7 +21,9 @@
</div>
</div>
</div>
<div class="right waves-effect waves-light btn pink-button small-button" (click)="backupEverything.openModal()">
<div class="right waves-effect waves-light btn pink-button small-button" (click)="cloudBackup.openModal()">
Cloud Backup</div>
<div class="right waves-effect waves-light btn pink-button small-button margin-right" (click)="backupEverything.openModal()">
Backup/Restore All</div>
<div class="right waves-effect waves-light btn pink-button small-button margin-right" mzTooltip
[tooltip]="'Current backup location: ' + appService.backupPath" position="bottom"
@@ -196,6 +198,33 @@
</mz-modal>
<mz-modal #cloudBackup [fixedFooter]="true" (close)="cloudBackupDone = false">
<mz-modal-header>
<h4>Cloud Backup</h4>
</mz-modal-header>
<mz-modal-content>
<div class="center-align"><br><br>
<ng-container *ngIf="!cloudBackupLoading&&!cloudBackupDone">
Trigger apps on your headset to run a cloud backup now in-case you want to do a factory reset.<br><br>
WARNING: Not all apps support cloud backup - this is not guaranteed to work for all apps.<br><br>
<button mz-button class="pink-button" (click)="triggerCloudBackup()">Trigger Cloud Backup</button><br><br>
</ng-container>
<ng-container *ngIf="!cloudBackupLoading&&cloudBackupDone">
Cloud backup complete. <br><br>Check cloud backup status here: https://secure.oculus.com/my/cloud-backup/<br><br>
<button mz-button class="pink-button" (click)="appService.opn('https://secure.oculus.com/my/cloud-backup/')">View On Oculus</button><br><br>
</ng-container>
<ng-container *ngIf="cloudBackupLoading">
{{cloudBackupStatus}}<br><br>
<app-loading-spinner-small></app-loading-spinner-small>
</ng-container>
</div>
</mz-modal-content>
<mz-modal-footer>
<button mz-button [flat]="true" mz-modal-close>Done</button>
</mz-modal-footer>
</mz-modal>
<mz-modal #pickLocation [fixedFooter]="true">
<mz-modal-header>
<h4>Set the save location for backup data.</h4>