Add app stop modal
This commit is contained in:
@@ -1143,7 +1143,14 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
busyRunState: false,
|
||||
startButton: false,
|
||||
|
||||
toggleRunState: function () {
|
||||
toggleRunState: function (confirmStop) {
|
||||
if (confirmStop && $scope.app.runState !== RSTATES.STOPPED) {
|
||||
$('#stopModal').modal('show');
|
||||
return;
|
||||
}
|
||||
|
||||
$('#stopModal').modal('hide');
|
||||
|
||||
var func = $scope.app.runState === RSTATES.STOPPED ? Client.startApp : Client.stopApp;
|
||||
$scope.uninstall.busyRunState = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user