mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 21:37:42 -02:30
Clicking host name on Inventory detail page now works correctly. Host is displayed in a modal dialog, allowing user to make changes and save.
This commit is contained in:
@@ -88,7 +88,7 @@ angular.module('InventoryFormDefinition', [])
|
|||||||
name: {
|
name: {
|
||||||
key: true,
|
key: true,
|
||||||
label: 'Name',
|
label: 'Name',
|
||||||
linkTo: "/inventories/\{\{ inventory_id \}\}/hosts/\{\{ host.id \}\}"
|
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')"
|
||||||
},
|
},
|
||||||
description: {
|
description: {
|
||||||
label: 'Description'
|
label: 'Description'
|
||||||
|
|||||||
@@ -413,7 +413,7 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
|||||||
return function(params) {
|
return function(params) {
|
||||||
// Rerfresh the Hosts view on right side of page
|
// Rerfresh the Hosts view on right side of page
|
||||||
var url = (params.group_id !== null) ? GetBasePath('groups') + params.group_id + '/hosts/' :
|
var url = (params.group_id !== null) ? GetBasePath('groups') + params.group_id + '/hosts/' :
|
||||||
GetBasePath('inventory') + params.inventory_id + '/';
|
GetBasePath('inventory') + params.inventory_id + '/hosts/';
|
||||||
var relatedSets = { hosts: { url: url, iterator: 'host' } };
|
var relatedSets = { hosts: { url: url, iterator: 'host' } };
|
||||||
RelatedSearchInit({ scope: params.scope, form: InventoryForm, relatedSets: relatedSets });
|
RelatedSearchInit({ scope: params.scope, form: InventoryForm, relatedSets: relatedSets });
|
||||||
RelatedPaginateInit({ scope: params.scope, relatedSets: relatedSets });
|
RelatedPaginateInit({ scope: params.scope, relatedSets: relatedSets });
|
||||||
|
|||||||
Reference in New Issue
Block a user