1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

feat(global): display a message when no item available in a list view (#263)

This commit is contained in:
Anthony Lapenna 2016-10-07 17:55:09 +13:00 committed by GitHub
parent 134416c9a3
commit 35ced4901a
11 changed files with 22 additions and 3 deletions

View file

@ -82,6 +82,9 @@
<div class="title">{{ tpl.title }}</div>
<div class="description">{{ tpl.description }}</div>
</div>
<div ng-if="templates.length == 0" class="text-center text-muted">
No templates available.
</div>
</div>
</rd-widget-body>
</rd-widget>

View file

@ -7,6 +7,7 @@ function ($scope, $q, $state, $filter, Config, Info, Container, ContainerHelper,
network: "",
name: ""
};
$scope.templates = [];
var selectedItem = -1;