From 0f3fcb29177a464613a01f554f961646e45cbe5f Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 24 May 2017 14:38:53 +0200 Subject: [PATCH] fix(templates): fix an issue with the maximum number of templates displayed (#883) --- app/components/templates/templates.html | 4 ++-- app/components/templates/templatesController.js | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/components/templates/templates.html b/app/components/templates/templates.html index 4cadd180c..8b273388c 100644 --- a/app/components/templates/templates.html +++ b/app/components/templates/templates.html @@ -250,7 +250,7 @@
-
+
@@ -289,7 +289,7 @@
Loading...
-
+
No templates available.
diff --git a/app/components/templates/templatesController.js b/app/components/templates/templatesController.js index 57fb2515a..5ead966ac 100644 --- a/app/components/templates/templatesController.js +++ b/app/components/templates/templatesController.js @@ -5,7 +5,6 @@ function ($scope, $q, $state, $stateParams, $anchorScroll, $filter, Config, Cont selectedTemplate: null, showAdvancedOptions: false, hideDescriptions: $stateParams.hide_descriptions, - pagination_count: Pagination.getPaginationCount('templates'), formValidationError: '', filters: { Categories: '!', @@ -18,10 +17,6 @@ function ($scope, $q, $state, $stateParams, $anchorScroll, $filter, Config, Cont name: '' }; - $scope.changePaginationCount = function() { - Pagination.setPaginationCount('templates', $scope.state.pagination_count); - }; - $scope.addVolume = function () { $scope.state.selectedTemplate.Volumes.push({ containerPath: '', name: '', readOnly: false, type: 'auto' }); };