mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
Redirect to container list when removing a container (Fixes #158)
This commit is contained in:
parent
a065e0e259
commit
6de45cd422
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
angular.module('container', [])
|
angular.module('container', [])
|
||||||
.controller('ContainerController', ['$scope', '$routeParams', '$location', 'Container', 'ContainerCommit', 'Messages', 'ViewSpinner',
|
.controller('ContainerController', ['$scope', '$routeParams', '$location', 'Container', 'ContainerCommit', 'Messages', 'ViewSpinner', '$timeout',
|
||||||
function ($scope, $routeParams, $location, Container, ContainerCommit, Messages, ViewSpinner) {
|
function ($scope, $routeParams, $location, Container, ContainerCommit, Messages, ViewSpinner, $timeout) {
|
||||||
$scope.changes = [];
|
$scope.changes = [];
|
||||||
$scope.edit = false;
|
$scope.edit = false;
|
||||||
|
|
||||||
|
@ -94,6 +94,7 @@ angular.module('container', [])
|
||||||
ViewSpinner.spin();
|
ViewSpinner.spin();
|
||||||
Container.remove({id: $routeParams.id}, function (d) {
|
Container.remove({id: $routeParams.id}, function (d) {
|
||||||
update();
|
update();
|
||||||
|
$location.path('/containers');
|
||||||
Messages.send("Container removed", $routeParams.id);
|
Messages.send("Container removed", $routeParams.id);
|
||||||
}, function (e) {
|
}, function (e) {
|
||||||
update();
|
update();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue