mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
Hide page size dropdown for multi-select lists in modals
This commit is contained in:
@@ -54,7 +54,8 @@
|
|||||||
let html = generateList.build({
|
let html = generateList.build({
|
||||||
list: list,
|
list: list,
|
||||||
mode: 'edit',
|
mode: 'edit',
|
||||||
title: false
|
title: false,
|
||||||
|
hideViewPerPage: true
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.compileList(html);
|
$scope.compileList(html);
|
||||||
|
|||||||
@@ -47,7 +47,8 @@
|
|||||||
let html = generateList.build({
|
let html = generateList.build({
|
||||||
list: list,
|
list: list,
|
||||||
mode: 'edit',
|
mode: 'edit',
|
||||||
title: false
|
title: false,
|
||||||
|
hideViewPerPage: true
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.compileList(html);
|
$scope.compileList(html);
|
||||||
|
|||||||
@@ -55,7 +55,8 @@ export default ['templateUrl', function(templateUrl) {
|
|||||||
|
|
||||||
let html = `${GenerateList.build({
|
let html = `${GenerateList.build({
|
||||||
list: instanceGroupList,
|
list: instanceGroupList,
|
||||||
input_type: 'instance-groups-modal-body'
|
input_type: 'instance-groups-modal-body',
|
||||||
|
hideViewPerPage: true
|
||||||
})}`;
|
})}`;
|
||||||
|
|
||||||
$scope.list = instanceGroupList;
|
$scope.list = instanceGroupList;
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ export default ['$compile', 'Attr', 'Icon',
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options.paginate === undefined || options.paginate === true) {
|
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
|
html += `<paginate
|
||||||
base-path="${list.basePath || list.name}"
|
base-path="${list.basePath || list.name}"
|
||||||
collection="${list.name}"
|
collection="${list.name}"
|
||||||
|
|||||||
Reference in New Issue
Block a user