mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
Show 'shutdown complete' modal (fixes #251)
This commit is contained in:
parent
cd433a4f52
commit
4235175966
File diff suppressed because one or more lines are too long
@ -263,14 +263,15 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
|
|||||||
|
|
||||||
$scope.restart = function () {
|
$scope.restart = function () {
|
||||||
restarting = true;
|
restarting = true;
|
||||||
$('#restarting').modal('show');
|
$('#restarting').modal({backdrop: 'static', keyboard: false});
|
||||||
$http.post(urlbase + '/restart');
|
$http.post(urlbase + '/restart');
|
||||||
$scope.configInSync = true;
|
$scope.configInSync = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.shutdown = function () {
|
$scope.shutdown = function () {
|
||||||
|
restarting = true;
|
||||||
$http.post(urlbase + '/shutdown').success(function () {
|
$http.post(urlbase + '/shutdown').success(function () {
|
||||||
setTimeout($scope.refresh(), 250);
|
$('#shutdown').modal({backdrop: 'static', keyboard: false});
|
||||||
});
|
});
|
||||||
$scope.configInSync = true;
|
$scope.configInSync = true;
|
||||||
};
|
};
|
||||||
|
@ -353,6 +353,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Shutdown modal -->
|
||||||
|
|
||||||
|
<div id="shutdown" class="modal fade">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header alert alert-success">
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<span class="glyphicon glyphicon-off"></span>
|
||||||
|
Shutdown Complete
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<p>
|
||||||
|
Syncthing has been shut down.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Node editor modal -->
|
<!-- Node editor modal -->
|
||||||
|
|
||||||
<div id="editNode" class="modal fade">
|
<div id="editNode" class="modal fade">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user