mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
fixing ngToast.danger message for failed test aggregation
This commit is contained in:
parent
022de2aa3e
commit
d3826c5c50
@ -161,5 +161,8 @@ input#filePickerText {
|
||||
border-style: solid;
|
||||
border-color: @default-interface-txt transparent transparent transparent;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.LogAggregator-failedNotification{
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
@ -18,6 +18,7 @@ export default [
|
||||
'Rest',
|
||||
'ProcessErrors',
|
||||
'ngToast',
|
||||
'$filter',
|
||||
function(
|
||||
$rootScope, $scope, $state, $stateParams, $timeout,
|
||||
AngularCodeMirror,
|
||||
@ -31,7 +32,8 @@ export default [
|
||||
i18n,
|
||||
Rest,
|
||||
ProcessErrors,
|
||||
ngToast
|
||||
ngToast,
|
||||
$filter
|
||||
) {
|
||||
var systemVm = this;
|
||||
|
||||
@ -215,10 +217,9 @@ export default [
|
||||
.catch(({data, status}) => {
|
||||
if (status === 500) {
|
||||
ngToast.danger({
|
||||
content: `<i class="fa fa-exclamation-triangle
|
||||
Toast-successIcon"></i>` +
|
||||
i18n._('Log aggregator test failed.<br />Detail: ') +
|
||||
data.error
|
||||
content: '<i class="fa fa-exclamation-triangle Toast-successIcon"></i>' +
|
||||
i18n._('Log aggregator test failed. <br> Detail: ') + $filter('sanitize')(data.error),
|
||||
additionalClasses: "LogAggregator-failedNotification"
|
||||
});
|
||||
} else {
|
||||
ProcessErrors($scope, data, status, null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user