Merge pull request #6847 from mabashian/6761-hide-page-size

Hide page size dropdown for multi-select lists in modals
This commit is contained in:
Michael Abashian 2017-07-01 22:06:35 -04:00 committed by GitHub
commit 78ef0c06d2
4 changed files with 7 additions and 4 deletions

View File

@ -54,7 +54,8 @@
let html = generateList.build({
list: list,
mode: 'edit',
title: false
title: false,
hideViewPerPage: true
});
$scope.compileList(html);

View File

@ -47,7 +47,8 @@
let html = generateList.build({
list: list,
mode: 'edit',
title: false
title: false,
hideViewPerPage: true
});
$scope.compileList(html);

View File

@ -55,7 +55,8 @@ export default ['templateUrl', function(templateUrl) {
let html = `${GenerateList.build({
list: instanceGroupList,
input_type: 'instance-groups-modal-body'
input_type: 'instance-groups-modal-body',
hideViewPerPage: true
})}`;
$scope.list = instanceGroupList;

View File

@ -457,7 +457,7 @@ export default ['$compile', 'Attr', 'Icon',
}
if (options.paginate === undefined || options.paginate === true) {
let hide_view_per_page = (options.mode === "lookup") ? true : false;
let hide_view_per_page = (options.mode === "lookup" || options.hideViewPerPage) ? true : false;
html += `<paginate
base-path="${list.basePath || list.name}"
collection="${list.name}"