Restoring app will lose all content if no backup

Maybe we should allow the user to force update if there is no backup?
We can add that as the need arises...
This commit is contained in:
Girish Ramakrishnan
2015-07-20 10:36:13 -07:00
parent 8b1f0186b8
commit 97642dabe8
+2 -1
View File
@@ -73,7 +73,8 @@
<h4 class="modal-title">Really Restore {{ appRestore.app.location }}</h4>
</div>
<div class="modal-body">
<p>Restoring the app will lose all content generated since last backup of this app!</p>
<p ng-show="appRestore.app.lastBackupId !== null">Restoring the app will lose all content generated since last backup of this app!</p>
<p ng-show="appRestore.app.lastBackupId === null">This app was never backed up. Restoring the app will lose all content!</p>
<fieldset>
<form class="form-signin" role="form" name="appRestoreForm" ng-submit="doRestore()" autocomplete="off">
<div class="form-group" ng-class="{ 'has-error': (!appRestoreForm.password.$dirty && appRestore.error.password) || (appRestoreForm.password.$dirty && appRestoreForm.password.$invalid) }">