Fixup uninstall UI

This commit is contained in:
Girish Ramakrishnan
2019-09-19 10:28:17 -07:00
parent f0fac9165c
commit a666cb00eb

View File

@@ -35,13 +35,15 @@
<div class="modal fade" id="uninstallModal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Uninstall {{ app.label || app.fqdn }}</h4>
</div>
<div class="modal-body">
<br/>
<p>Really uninstall <b>{{ app.fqdn }}</b> ?</p>
<p>This will immediately uninstall <b>{{ app.label || app.fqdn }}</b> and remove all it's data.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">No</button>
<button type="button" class="btn btn-danger" ng-click="uninstall.submit()" ng-disabled="uninstall.busy"><i class="fa fa-circle-notch fa-spin" ng-show="uninstall.busy"></i> Yes</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" ng-click="uninstall.submit()" ng-disabled="uninstall.busy"><i class="fa fa-circle-notch fa-spin" ng-show="uninstall.busy"></i> Uninstall</button>
</div>
</div>
</div>
@@ -581,9 +583,11 @@
<div class="card" ng-show="view === 'uninstall'">
<div class="row">
<div class="col-md-12">
<p class="text-danger">Deleting the app will also remove all it's data.</p>
<p>App backups are not removed and will be cleaned up based on the backup policy.</p>
<label class="control-label">Uninstall App</label>
<p>This will uninstall the app immediately and remove all it's data. The site will be inaccessible.
</p>
<p>App backups are not removed and will be cleaned up based on the backup policy. You can resurrect this app from an existing
app backup using the following <a target="_blank" href="https://cloudron.io/documentation/backups/#restoring-uninstalled-app">instructions</a>.</p>
<button class="btn btn-danger pull-right" ng-click="uninstall.ask()">Uninstall</button>
</div>
</div>