mirror of
https://github.com/ansible/awx.git
synced 2026-07-20 21:01:58 -02:30
Update the front-end Insights urls
This commit is contained in:
@@ -26,6 +26,7 @@ function (data, $scope, moment, $state, InventoryData, InsightsService,
|
||||
InventoryData.summary_fields.insights_credential && InventoryData.summary_fields.insights_credential.id) ?
|
||||
InventoryData.summary_fields.insights_credential.id : null;
|
||||
$scope.canRemediate = CanRemediate;
|
||||
$scope.platformId = $scope.reports_dataset.platform_id;
|
||||
}
|
||||
|
||||
function filter(str){
|
||||
@@ -40,7 +41,7 @@ function (data, $scope, moment, $state, InventoryData, InsightsService,
|
||||
};
|
||||
|
||||
$scope.viewDataInInsights = function(){
|
||||
window.open(`https://access.redhat.com/insights/inventory?machine=${$scope.$parent.host.insights_system_id}`, '_blank');
|
||||
window.open(`https://cloud.redhat.com/insights/inventory/${$scope.platform_id}/insights`, '_blank');
|
||||
};
|
||||
|
||||
$scope.remediateInventory = function(inv_id, insights_credential){
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
export default function(){
|
||||
return function(plan) {
|
||||
if(plan === null || plan === undefined){
|
||||
return "PLAN: Not Available <a href='https://cloud.redhat.com/insights/planner/' target='_blank'>CREATE A NEW PLAN IN INSIGHTS</a>";
|
||||
return "PLAN: Not Available <a href='https://cloud.redhat.com/insights/remediations/' target='_blank'>CREATE A NEW PLAN IN INSIGHTS</a>";
|
||||
} else {
|
||||
let name = (plan.name === null) ? "Unnamed Plan" : plan.name;
|
||||
return `<a href="https://cloud.redhat.com/insights/planner/${plan.id}" target="_blank">${name} (${plan.id})</a>`;
|
||||
return `<a href="https://cloud.redhat.com/insights/remediations/${plan.id}" target="_blank">${name} (${plan.id})</a>`;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user