mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Adjustments to nested groups edit
after feedback from Bill.
This commit is contained in:
@@ -69,6 +69,9 @@
|
|||||||
$scope.editGroup = function(id){
|
$scope.editGroup = function(id){
|
||||||
$state.go('inventories.edit.groups.edit', {group_id: id});
|
$state.go('inventories.edit.groups.edit', {group_id: id});
|
||||||
};
|
};
|
||||||
|
// $scope.editGroup = function(id){
|
||||||
|
// $state.go('inventories.edit.groups.edit.nested_groups.edit', {nested_group_id: id});
|
||||||
|
// };
|
||||||
$scope.deleteGroup = function(group){
|
$scope.deleteGroup = function(group){
|
||||||
$scope.toDelete = {};
|
$scope.toDelete = {};
|
||||||
angular.extend($scope.toDelete, group);
|
angular.extend($scope.toDelete, group);
|
||||||
|
|||||||
@@ -19,13 +19,13 @@ function(i18n, nestedGroupListState){
|
|||||||
name: 'nested_group',
|
name: 'nested_group',
|
||||||
iterator: "nested_group",
|
iterator: "nested_group",
|
||||||
basePath: 'groups',
|
basePath: 'groups',
|
||||||
parent: 'inventories.edit.groups',
|
parent: 'inventories.edit.groups.edit.nested_groups',
|
||||||
// the parent node this generated state definition tree expects to attach to
|
// the parent node this generated state definition tree expects to attach to
|
||||||
stateTree: 'inventories',
|
stateTree: 'inventories',
|
||||||
// form generator inspects the current state name to determine whether or not to set an active (.is-selected) class on a form tab
|
// form generator inspects the current state name to determine whether or not to set an active (.is-selected) class on a form tab
|
||||||
// this setting is optional on most forms, except where the form's edit state name is not parentStateName.edit
|
// this setting is optional on most forms, except where the form's edit state name is not parentStateName.edit
|
||||||
activeEditState: 'inventories.edit.groups.edit',
|
activeEditState: 'inventories.edit.groups.edit.nested_groups.edit',
|
||||||
detailsClick: "$state.go('inventories.edit.groups.edit')",
|
detailsClick: "$state.go('inventories.edit.groups.edit.nested_groups.edit')",
|
||||||
well: false,
|
well: false,
|
||||||
tabs: true,
|
tabs: true,
|
||||||
fields: {
|
fields: {
|
||||||
|
|||||||
Reference in New Issue
Block a user