Move reboot server dialog and logic to main view

This commit is contained in:
Johannes Zellner
2020-11-05 16:45:45 +01:00
parent 61c1622cbf
commit 93a7137d10
6 changed files with 43 additions and 83 deletions

View File

@@ -1,29 +1,10 @@
<!-- Modal reboot server -->
<div class="modal fade" id="rebootModal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Really reboot server?</h4>
</div>
<div class="modal-body">
<p class="text-danger">Rebooting the server will cause temporary downtime for all apps installed on this Cloudron!</p>
<p>Use this to apply security updates or if you experience unexpected behaviour. All apps and services currently running on this Cloudron will automatically start when the reboot is complete.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" ng-click="reboot.submit()" ng-disabled="reboot.busy"><i class="fa fa-circle-notch fa-spin" ng-show="reboot.busy"></i> Reboot now</button>
</div>
</div>
</div>
</div>
<div class="content">
<div class="text-left">
<h1>
{{ 'system.title' | tr }}
<a class="btn btn-default pull-right" href="/logs.html?id=box" target="_blank">Show Logs</a>
<button class="btn btn-default pull-right" ng-click="reboot.show()" ng-disabled="reboot.busy"><i class="fa fa-circle-notch fa-spin" ng-show="reboot.busy"></i> Reboot</button>
<button class="btn btn-default pull-right" ng-click="$parent.reboot.show()">Reboot</button>
</h1>
</div>