mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Hide page size dropdown for multi-select lists in modals
This commit is contained in:
parent
8c834daf46
commit
a4a3271b04
@ -54,7 +54,8 @@
|
||||
let html = generateList.build({
|
||||
list: list,
|
||||
mode: 'edit',
|
||||
title: false
|
||||
title: false,
|
||||
hideViewPerPage: true
|
||||
});
|
||||
|
||||
$scope.compileList(html);
|
||||
|
||||
@ -47,7 +47,8 @@
|
||||
let html = generateList.build({
|
||||
list: list,
|
||||
mode: 'edit',
|
||||
title: false
|
||||
title: false,
|
||||
hideViewPerPage: true
|
||||
});
|
||||
|
||||
$scope.compileList(html);
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user