Migrate problems panel to React (#1532)
* Replace default angular app config editor * Problems panel: migrate module to ts * Problems panel options editor to react * Problems panel react WIP * Fix explore button * Problems panel alert list layout WIP * Refactor * Minor tweaks on panel options * remove outdated tests * Update typescript * Draft for tag event handling * Remove unused files
This commit is contained in:
@@ -14,14 +14,14 @@ export const AlertIcon: FC<Props> = ({ problem, color, blink, highlightBackgroun
|
||||
const severity = Number(problem.severity);
|
||||
const status = problem.value === '1' && severity >= 2 ? 'critical' : 'online';
|
||||
|
||||
const iconClass = cx(
|
||||
'icon-gf',
|
||||
blink && 'zabbix-trigger--blinked',
|
||||
);
|
||||
const iconClass = cx('icon-gf', blink && 'zabbix-trigger--blinked');
|
||||
|
||||
const wrapperClass = cx(
|
||||
'alert-rule-item__icon',
|
||||
!highlightBackground && css`color: ${color}`
|
||||
!highlightBackground &&
|
||||
css`
|
||||
color: ${color};
|
||||
`
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user