mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
Merge pull request #6878 from jaredevantabor/insights
show/hide Insights action buttons
This commit is contained in:
@@ -126,7 +126,7 @@ function(i18n) {
|
|||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
title: i18n._('Insights'),
|
title: i18n._('Insights'),
|
||||||
skipGenerator: true,
|
skipGenerator: true,
|
||||||
ngIf: 'host.insights_system_id!==null'
|
ngIf: "host.insights_system_id!==null && host.summary_fields.inventory.hasOwnProperty('insights_credential_id')"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="List-actionsContainer">
|
<td class="List-actionsContainer">
|
||||||
<div class="List-actionButtonCell List-tableCell">
|
<div class="List-actionButtonCell List-tableCell">
|
||||||
<button id="insights-action" class="List-actionButton " data-placement="top" ng-click="goToInsights(host.id)" aw-tool-tip="View Insights Data" ng-show="host.insights_system_id">
|
<button id="insights-action" class="List-actionButton " data-placement="top" ng-click="goToInsights(host.id)" aw-tool-tip="View Insights Data" ng-show="host.insights_system_id && host.summary_fields.inventory.hasOwnProperty('insights_credential_id')">
|
||||||
<i class="fa fa-info"></i>
|
<i class="fa fa-info"></i>
|
||||||
</button>
|
</button>
|
||||||
<button id="edit-action" class="List-actionButton " ng-class="{'List-editButton--selected' : $stateParams['host_id'] == host.id}" data-placement="top" ng-click="editHost(host.id)" aw-tool-tip="Edit host" ng-show="host.summary_fields.user_capabilities.edit">
|
<button id="edit-action" class="List-actionButton " ng-class="{'List-editButton--selected' : $stateParams['host_id'] == host.id}" data-placement="top" ng-click="editHost(host.id)" aw-tool-tip="Edit host" ng-show="host.summary_fields.user_capabilities.edit">
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ function(i18n) {
|
|||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
title: i18n._('Insights'),
|
title: i18n._('Insights'),
|
||||||
skipGenerator: true,
|
skipGenerator: true,
|
||||||
ngIf: 'host.insights_system_id!==null'
|
ngIf: "host.insights_system_id!==null && host.summary_fields.inventory.hasOwnProperty('insights_credential_id')"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ export default ['i18n', function(i18n) {
|
|||||||
icon: 'fa-info',
|
icon: 'fa-info',
|
||||||
awToolTip: i18n._('View Insights Data'),
|
awToolTip: i18n._('View Insights Data'),
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: 'host.insights_system_id'
|
ngShow: 'host.insights_system_id && host.summary_fields.inventory.hasOwnProperty("insights_credential_id")'
|
||||||
},
|
},
|
||||||
edit: {
|
edit: {
|
||||||
ngClick: "editHost(host)",
|
ngClick: "editHost(host)",
|
||||||
|
|||||||
Reference in New Issue
Block a user