mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(templates): fixes an issue regarding template selection when paged
This commit is contained in:
parent
913c580340
commit
8fcae6810e
2 changed files with 5 additions and 2 deletions
|
@ -184,7 +184,10 @@ function ($scope, $q, $state, $filter, Config, Info, Container, ContainerHelper,
|
|||
|
||||
function initTemplates() {
|
||||
Templates.get(function (data) {
|
||||
$scope.templates = data;
|
||||
$scope.templates = data.map(function(tpl,index){
|
||||
tpl.index = index;
|
||||
return tpl;
|
||||
});
|
||||
$('#loadTemplatesSpinner').hide();
|
||||
}, function (e) {
|
||||
$('#loadTemplatesSpinner').hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue