mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
fixed urls for credentials going to api
This commit is contained in:
parent
095f8d349d
commit
cf99179015
@ -710,14 +710,16 @@ export function JobDetailController ($location, $rootScope, $filter, $scope, $co
|
|||||||
|
|
||||||
if (data.summary_fields.credential) {
|
if (data.summary_fields.credential) {
|
||||||
scope.credential_name = data.summary_fields.credential.name;
|
scope.credential_name = data.summary_fields.credential.name;
|
||||||
scope.credential_url = data.related.credential;
|
scope.credential_url = data.related.credential
|
||||||
|
.replace('api/v1', '#');
|
||||||
} else {
|
} else {
|
||||||
scope.credential_name = "";
|
scope.credential_name = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.summary_fields.cloud_credential) {
|
if (data.summary_fields.cloud_credential) {
|
||||||
scope.cloud_credential_name = data.summary_fields.cloud_credential.name;
|
scope.cloud_credential_name = data.summary_fields.cloud_credential.name;
|
||||||
scope.cloud_credential_url = data.related.cloud_credential;
|
scope.cloud_credential_url = data.related.cloud_credential
|
||||||
|
.replace('api/v1', '#');
|
||||||
} else {
|
} else {
|
||||||
scope.cloud_credential_name = "";
|
scope.cloud_credential_name = "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user