mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Merge pull request #6518 from mabashian/6362-smart-host-edit
Fixed edit host link on smart inventory host list
This commit is contained in:
commit
8400382e5b
@ -83,8 +83,8 @@ export default ['$scope', 'ListDefinition', '$rootScope', 'GetBasePath',
|
||||
$scope.createHost = function(){
|
||||
$state.go('inventories.edit.hosts.add');
|
||||
};
|
||||
$scope.editHost = function(id){
|
||||
$state.go('inventories.edit.hosts.edit', {host_id: id});
|
||||
$scope.editHost = function(host){
|
||||
$state.go('inventories.edit.hosts.edit', {inventory_id: host.inventory_id, host_id: host.id});
|
||||
};
|
||||
$scope.goToInsights = function(id){
|
||||
$state.go('inventories.edit.hosts.edit.insights', {host_id:id});
|
||||
|
||||
@ -38,7 +38,7 @@ export default {
|
||||
name: {
|
||||
key: true,
|
||||
label: 'Hosts',
|
||||
ngClick: "editHost(host.id)",
|
||||
ngClick: "editHost(host)",
|
||||
ngClass: "{ 'host-disabled-label': !host.enabled }",
|
||||
columnClass: 'col-lg-6 col-md-8 col-sm-8 col-xs-7',
|
||||
dataHostId: "{{ host.id }}",
|
||||
@ -66,7 +66,7 @@ export default {
|
||||
},
|
||||
edit: {
|
||||
//label: 'Edit',
|
||||
ngClick: "editHost(host.id)",
|
||||
ngClick: "editHost(host)",
|
||||
icon: 'icon-edit',
|
||||
awToolTip: 'Edit host',
|
||||
dataPlacement: 'top',
|
||||
@ -74,7 +74,7 @@ export default {
|
||||
},
|
||||
view: {
|
||||
//label: 'Edit',
|
||||
ngClick: "editHost(host.id)",
|
||||
ngClick: "editHost(host)",
|
||||
awToolTip: 'View host',
|
||||
dataPlacement: 'top',
|
||||
ngShow: '!host.summary_fields.user_capabilities.edit'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user