src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Issues.controller.js
function(aIssues) {
			aIssues.forEach(function(element){
				switch (element.severity) {
					case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_LOW:
						element.severityIcon = mIssueSettings.severityIcons.Low;
						element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_LOW_COLOR;
						break;
					case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_MEDIUM:
						element.severityIcon = mIssueSettings.severityIcons.Medium;
						element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_MEDIUM_COLOR;
						break;
					case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_HIGH:
						element.severityIcon = mIssueSettings.severityIcons.High;
						element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_HIGH_COLOR;
						break;
				}
			});
		}
function(aIssues) {
			aIssues.forEach(function(element){
				switch (element.severity) {
					case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_LOW:
						element.severityIcon = mIssueSettings.severityIcons.Low;
						element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_LOW_COLOR;
						break;
					case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_MEDIUM:
						element.severityIcon = mIssueSettings.severityIcons.Medium;
						element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_MEDIUM_COLOR;
						break;
					case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_HIGH:
						element.severityIcon = mIssueSettings.severityIcons.High;
						element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_HIGH_COLOR;
						break;
				}
			});
		}
function ( aIssues ) { aIssues . forEach ( function ( element ) { switch ( element . severity ) { case constants . SUPPORT_ASSISTANT_ISSUE_SEVERITY_LOW : element . severityIcon = mIssueSettings . severityIcons . Low ; element . severityColor = constants . SUPPORT_ASSISTANT_SEVERITY_LOW_COLOR ; break ; case constants . SUPPORT_ASSISTANT_ISSUE_SEVERITY_MEDIUM : element . severityIcon = mIssueSettings . severityIcons . Medium ; element . severityColor = constants . SUPPORT_ASSISTANT_SEVERITY_MEDIUM_COLOR ; break ; case constants . SUPPORT_ASSISTANT_ISSUE_SEVERITY_HIGH : element . severityIcon = mIssueSettings . severityIcons . High ; element . severityColor = constants . SUPPORT_ASSISTANT_SEVERITY_HIGH_COLOR ; break ; } } ) ; }
Set to model icon and color depending on severity.
@private
@param {array} aIssues
@returns {void}
Set to model icon and color depending on severity .