mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Merge pull request #6914 from mabashian/associate-host-preview
Show multiselect preview when associating related hosts
This commit is contained in:
@@ -12,6 +12,6 @@ import NestedGroupForm from './group-nested-groups.form';
|
|||||||
export default
|
export default
|
||||||
angular.module('nestedGroups', [])
|
angular.module('nestedGroups', [])
|
||||||
.factory('NestedGroupForm', NestedGroupForm)
|
.factory('NestedGroupForm', NestedGroupForm)
|
||||||
.value('NestedGroupListDefinition', nestedGroupListDefinition)
|
.factory('NestedGroupListDefinition', nestedGroupListDefinition)
|
||||||
.controller('NestedGroupsListController', controller)
|
.controller('NestedGroupsListController', controller)
|
||||||
.controller('NestedGroupsAddController', addController);
|
.controller('NestedGroupsAddController', addController);
|
||||||
|
|||||||
@@ -30,6 +30,10 @@
|
|||||||
list.multiSelect = true;
|
list.multiSelect = true;
|
||||||
list.fields.name.ngClick = 'linkoutHost(associate_host)';
|
list.fields.name.ngClick = 'linkoutHost(associate_host)';
|
||||||
list.trackBy = 'associate_host.id';
|
list.trackBy = 'associate_host.id';
|
||||||
|
list.multiSelectPreview = {
|
||||||
|
selectedRows: 'selectedItems',
|
||||||
|
availableRows: 'associate_hosts'
|
||||||
|
};
|
||||||
delete list.fields.toggleHost;
|
delete list.fields.toggleHost;
|
||||||
delete list.fields.active_failures;
|
delete list.fields.active_failures;
|
||||||
delete list.fields.inventory;
|
delete list.fields.inventory;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header Form-header">
|
<div class="modal-header Form-header">
|
||||||
<div class="Form-title Form-title--uppercase" translate>SELECT HOSTS</div>\
|
<div class="Form-title Form-title--uppercase" translate>SELECT HOSTS</div>
|
||||||
<div class="Form-header--fields"></div>
|
<div class="Form-header--fields"></div>
|
||||||
<div class="Form-exitHolder">
|
<div class="Form-exitHolder">
|
||||||
<button type="button" class="Form-exit" ng-click="closeModal()">
|
<button type="button" class="Form-exit" ng-click="closeModal()">
|
||||||
|
|||||||
Reference in New Issue
Block a user