1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 14:29:40 +02:00

fix(templates): hide hidden containers in templates (#165)

This commit is contained in:
Anthony Lapenna 2016-08-24 20:26:51 +12:00 committed by GitHub
parent 3c75c5fe25
commit e81bfb6f37
2 changed files with 23 additions and 1 deletions

View file

@ -142,6 +142,7 @@ function ($scope, Container, Info, Settings, Messages, Config, errorMsgFilter) {
batch($scope.containers, Container.remove, "Removed");
};
// TODO: centralize (already exist in TemplatesController)
var hideContainers = function (containers) {
return containers.filter(function (container) {
var filterContainer = false;