mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Remove panel header directive from instance modals
This commit is contained in:
parent
769e714f71
commit
625ae5d1bf
@ -66,6 +66,10 @@ function InstanceListPolicyController ($scope, $state, strings) {
|
||||
|
||||
$state.go("^.^");
|
||||
};
|
||||
|
||||
vm.dismiss = () => {
|
||||
$state.go('^.^');
|
||||
};
|
||||
}
|
||||
|
||||
InstanceListPolicyController.$inject = [
|
||||
|
@ -1,8 +1,16 @@
|
||||
<div id="instance-modal" class="modal-dialog">
|
||||
<at-panel on-dismiss="^.^">
|
||||
<at-panel-heading>
|
||||
{{:: vm.strings.get('instance.PANEL_TITLE') }}
|
||||
</at-panel-heading>
|
||||
<div class="modal-content">
|
||||
<div class="row at-Panel-headingRow">
|
||||
<div class="col-xs-10">
|
||||
<h3 class="at-Panel-headingTitle">{{:: vm.strings.get('instance.PANEL_TITLE') }}</h3>
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<div class="at-Panel-dismiss">
|
||||
<i class="fa fa-times-circle fa-lg" ng-click="vm.dismiss()"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<multi-select-preview selected-rows='vm.selectedRows' available-rows='instances'></multi-select-preview>
|
||||
<at-panel-body>
|
||||
<div class="at-List-toolbar">
|
||||
@ -49,5 +57,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</at-panel-body>
|
||||
</at-panel>
|
||||
</div>
|
||||
</div>
|
@ -36,7 +36,7 @@ function InstanceModalController ($scope, $state, models, strings, ProcessErrors
|
||||
$scope.$watch('vm.instances', function() {
|
||||
vm.selectedRows = _.filter(vm.instances, 'isSelected');
|
||||
vm.deselectedRows = _.filter(vm.instances, 'isSelected', false);
|
||||
}, true);
|
||||
}, true);
|
||||
|
||||
vm.submit = () => {
|
||||
Wait('start');
|
||||
@ -70,6 +70,10 @@ function InstanceModalController ($scope, $state, models, strings, ProcessErrors
|
||||
vm.onSaveSuccess = () => {
|
||||
$state.go('instanceGroups.instances', {}, {reload: 'instanceGroups.instances'});
|
||||
};
|
||||
|
||||
vm.dismiss = () => {
|
||||
$state.go('instanceGroups.instances');
|
||||
};
|
||||
}
|
||||
|
||||
InstanceModalController.$inject = [
|
||||
|
@ -1,8 +1,16 @@
|
||||
<div id="instance-modal" class="modal-dialog">
|
||||
<at-panel on-dismiss="instanceGroups.instances">
|
||||
<at-panel-heading>
|
||||
{{ vm.panelTitle }} | {{ vm.instanceGroupName}}
|
||||
</at-panel-heading>
|
||||
<div class="modal-content">
|
||||
<div class="row at-Panel-headingRow">
|
||||
<div class="col-xs-10">
|
||||
<h3 class="at-Panel-headingTitle">{{ vm.panelTitle }} | {{ vm.instanceGroupName}}</h3>
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<div class="at-Panel-dismiss">
|
||||
<i class="fa fa-times-circle fa-lg" ng-click="vm.dismiss()"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<multi-select-preview selected-rows='vm.selectedRows' available-rows='vm.instances'></multi-select-preview>
|
||||
<at-panel-body>
|
||||
<div class="at-List-toolbar">
|
||||
@ -51,5 +59,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</at-panel-body>
|
||||
</at-panel>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user