Merge pull request #6914 from mabashian/associate-host-preview

Show multiselect preview when associating related hosts
This commit is contained in:
Michael Abashian
2017-07-07 09:31:01 -04:00
committed by GitHub
3 changed files with 6 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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()">