Project

General

Profile

« Previous | Next » 

Revision 9e514325

Added by Ewoud Kohl van Wijngaarden 23 days ago

Fixes #37387 - Drop unused typeToIcon function

Has been unused since d91a0e4d219560000c5cc9c145650bab2039ba3b.

Fixes: d91a0e4d2195 ("fixes #14178 - introduce patternfly toast notifications")

View differences:

app/assets/javascripts/application.js
);
}
function typeToIcon(type) {
switch (type) {
case 'success':
return tfm.tools.iconText('ok', __('Success') + ': ', 'pficon');
case 'warning':
return tfm.tools.iconText(
'warning-triangle-o',
__('Warning') + ': ',
'pficon'
);
case 'danger':
return tfm.tools.iconText('error-circle-o', __('Error') + ': ', 'pficon');
}
}
function setPowerState(item, status) {
var power_actions = $('#power_actions'),
loading_power_state = $('#loading_power_state');

Also available in: Unified diff