Skip to content

Commit 1c93a6e

Browse files
feat[frontend](federation): fixed overview icons
1 parent d7d7548 commit 1c93a6e

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

frontend/src/app/federation/components/instance-overview-card/instance-overview-card.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
*ngFor="let action of actions"
5050
(click)="onSelect(action.route)"
5151
[title]="action.label">
52-
<i [class]="action.iconClass"></i>
52+
<span [inlineSVG]="iconPath+action.iconClass"
53+
class="svg-icon svg-icon-primary"></span>
5354
<span class="nav-icon__label">{{ action.label }}</span>
5455
</button>
5556
</div>

frontend/src/app/federation/components/instance-overview-card/instance-overview-card.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
} from '../../domain/count-alerts-by-severity.model';
66
import {AlertStatusSerie, CountAlertsByStatusEntry} from '../../domain/count-alerts-by-status.model';
77
import {FEDERATION_NAV_ACTIONS, NavAction} from '../../domain/federation-nav-actions';
8+
import {SYSTEM_MENU_ICONS_PATH} from '../../../shared/constants/menu_icons.constants';
89

910
interface MeterDatum {
1011
label: string;
@@ -36,6 +37,7 @@ export class InstanceOverviewCardComponent implements OnChanges {
3637
@Input() entry!: CountAlertsByStatusEntry;
3738
@Input() severityEntry: CountAlertsBySeverityEntry | null = null;
3839
@Output() select = new EventEmitter<string>();
40+
iconPath=SYSTEM_MENU_ICONS_PATH
3941

4042
readonly actions: ReadonlyArray<NavAction> = FEDERATION_NAV_ACTIONS;
4143
severityMeters: MeterDatum[] = [];

frontend/src/app/federation/domain/federation-nav-actions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export interface NavAction {
55
}
66

77
export const FEDERATION_NAV_ACTIONS: ReadonlyArray<NavAction> = [
8-
{label: 'Log Explorer', iconClass: 'icon-search4', route: '/discover/log-analyzer'},
9-
{label: 'Alert Management', iconClass: 'icon-bell2', route: '/data/alert/view'},
10-
{label: 'SOAR Flows', iconClass: 'icon-stack-play', route: '/soar/flows'},
11-
{label: 'Data Sources', iconClass: 'icon-database', route: '/data-sources'}
8+
{label: 'Log Explorer', iconClass: 'ANALYTICS.svg', route: '/discover/log-analyzer'},
9+
{label: 'Alert Management', iconClass: 'PROMOTION.svg', route: '/data/alert/view'},
10+
{label: 'SOAR Flows', iconClass: 'VISION.svg', route: '/soar/flows'},
11+
{label: 'Data Sources', iconClass: 'NETWORK.svg', route: '/data-sources'}
1212
];

0 commit comments

Comments
 (0)