mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -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:
@@ -83,8 +83,8 @@ export default ['$scope', 'ListDefinition', '$rootScope', 'GetBasePath',
|
|||||||
$scope.createHost = function(){
|
$scope.createHost = function(){
|
||||||
$state.go('inventories.edit.hosts.add');
|
$state.go('inventories.edit.hosts.add');
|
||||||
};
|
};
|
||||||
$scope.editHost = function(id){
|
$scope.editHost = function(host){
|
||||||
$state.go('inventories.edit.hosts.edit', {host_id: id});
|
$state.go('inventories.edit.hosts.edit', {inventory_id: host.inventory_id, host_id: host.id});
|
||||||
};
|
};
|
||||||
$scope.goToInsights = function(id){
|
$scope.goToInsights = function(id){
|
||||||
$state.go('inventories.edit.hosts.edit.insights', {host_id:id});
|
$state.go('inventories.edit.hosts.edit.insights', {host_id:id});
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export default {
|
|||||||
name: {
|
name: {
|
||||||
key: true,
|
key: true,
|
||||||
label: 'Hosts',
|
label: 'Hosts',
|
||||||
ngClick: "editHost(host.id)",
|
ngClick: "editHost(host)",
|
||||||
ngClass: "{ 'host-disabled-label': !host.enabled }",
|
ngClass: "{ 'host-disabled-label': !host.enabled }",
|
||||||
columnClass: 'col-lg-6 col-md-8 col-sm-8 col-xs-7',
|
columnClass: 'col-lg-6 col-md-8 col-sm-8 col-xs-7',
|
||||||
dataHostId: "{{ host.id }}",
|
dataHostId: "{{ host.id }}",
|
||||||
@@ -66,7 +66,7 @@ export default {
|
|||||||
},
|
},
|
||||||
edit: {
|
edit: {
|
||||||
//label: 'Edit',
|
//label: 'Edit',
|
||||||
ngClick: "editHost(host.id)",
|
ngClick: "editHost(host)",
|
||||||
icon: 'icon-edit',
|
icon: 'icon-edit',
|
||||||
awToolTip: 'Edit host',
|
awToolTip: 'Edit host',
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
@@ -74,7 +74,7 @@ export default {
|
|||||||
},
|
},
|
||||||
view: {
|
view: {
|
||||||
//label: 'Edit',
|
//label: 'Edit',
|
||||||
ngClick: "editHost(host.id)",
|
ngClick: "editHost(host)",
|
||||||
awToolTip: 'View host',
|
awToolTip: 'View host',
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: '!host.summary_fields.user_capabilities.edit'
|
ngShow: '!host.summary_fields.user_capabilities.edit'
|
||||||
|
|||||||
Reference in New Issue
Block a user