feat(stacks): add the ability to stop a stack (#4042)
* feat(stacks): add stack status * feat(stacks): add empty start/stop handlers * feat(stacks): show start/stop button * feat(stacks): implement stack stop * feat(stacks): implement start stack * feat(stacks): filter by active/inactive stacks * fix(stacks): update authorizations for stack start/stop * feat(stacks): assign default status on create * fix(bolt): fix import * fix(stacks): show external stacks * fix(stacks): reload on stop/start * feat(stacks): confirm before stop
This commit is contained in:
@@ -349,6 +349,16 @@ angular.module('portainer.app').factory('StackService', [
|
||||
return $async(kubernetesDeployAsync, endpointId, namespace, content, compose);
|
||||
};
|
||||
|
||||
service.start = start;
|
||||
function start(id) {
|
||||
return Stack.start({ id }).$promise;
|
||||
}
|
||||
|
||||
service.stop = stop;
|
||||
function stop(id) {
|
||||
return Stack.stop({ id }).$promise;
|
||||
}
|
||||
|
||||
return service;
|
||||
},
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user