diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/scan-setting/scan-setting.controller.js b/engines/bastion_katello/app/assets/javascripts/bastion_katello/scan-setting/scan-setting.controller.js index 8a2ec48cf9c92005f52939930607cb4d1a91c0eb..75f235ee8e8d4d4010b4c6a450baf5570b8e60ed 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/scan-setting/scan-setting.controller.js +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/scan-setting/scan-setting.controller.js @@ -177,7 +177,11 @@ angular.module('Bastion.scan-setting').controller('ScanSettingController', $scope.settingObj.start_at = $scope.start_at; $scope.settingObj.end_at = $scope.end_at; ScanSetting.setting($scope.settingObj, function(response){ - Notification.setSuccessMessage(translate('Setting successfully')); + if (response.error) { + Notification.setErrorMessage(response.error); + } else { + Notification.setSuccessMessage(translate('Setting successfully')); + } $scope.disableSetting = false; getScanSetting(); },