Add warning on data loss

This commit is contained in:
Girish Ramakrishnan
2019-10-24 10:07:34 -07:00
parent ee4e90deb5
commit 1e8fb61abf

View File

@@ -214,11 +214,15 @@
</h4>
</div>
<div class="modal-body" style="padding: 0 15px">
<p>This will restore this app to the data from <b>{{ restore.backup.creationTime | prettyDate }}</b></p>
<p>This will restore this app to the data from <b>{{ restore.backup.creationTime | prettyDate }}</b>.</p>
<p class="text-danger">Any data generated between now and the last known backup will be irrevocably lost.
It is recommended to create a backup of the current data before attempting a restore.
</p>
<br/>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-success" ng-click="restore.submit()"><i class="fas fa-history" ng-hide="restore.busy"></i><i class="fa fa-circle-notch fa-spin" ng-show="clone.busy"></i> Restore</button>
<button type="button" class="btn btn-danger" ng-click="restore.submit()"><i class="fas fa-history" ng-hide="restore.busy"></i><i class="fa fa-circle-notch fa-spin" ng-show="clone.busy"></i> Restore</button>
</div>
</div>
</div>