Skip to content

Commit

Permalink
Merge pull request #59 from Security-Onion-Solutions/kilo
Browse files Browse the repository at this point in the history
Replace v-tooltip on icon column with standard :title tooltips
  • Loading branch information
William Wernert authored Nov 17, 2021
2 parents 9064921 + 09afe85 commit 2ce1a5b
Showing 1 changed file with 20 additions and 48 deletions.
68 changes: 20 additions & 48 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -467,30 +467,16 @@ <h5>
<template v-slot:item="{ item, index }">
<tr>
<td>
<v-tooltip bottom v-if="ackEnabled && item['event.severity_label']">
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">
<v-btn id="alertButton" v-if="ackEnabled && item['event.severity_label']" class="mx-2" icon x-small
@click="ack($event, item, index, !isFilterToggleEnabled('acknowledged'))"
:color="item['event.severity_label'] + '_' + isFilterToggleEnabled('acknowledged') | colorSeverity">
<v-icon>fa-bell</v-icon>
</v-btn>
</span>
</template>
<span>{{ isFilterToggleEnabled('acknowledged') ? i18n.alertUndoAcknowledge : i18n.alertAcknowledge }}</span>
</v-tooltip>
<v-tooltip bottom v-if="escalateEnabled">
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">
<v-btn id="escalateButton" v-if="escalateEnabled" class="mx-2" icon x-small
@click="ack($event, item, index, true, true)"
:color="isFilterToggleEnabled('escalated') || item['event.escalated'] == true ? 'secondary' : 'primary'">
<v-icon>fa-exclamation-triangle</v-icon>
</v-btn>
</span>
</template>
<span>{{ isFilterToggleEnabled('escalated') || item['event.escalated'] == true ? i18n.alertEscalated : i18n.escalate }}</span>
</v-tooltip>
<v-btn id="alertButton" v-if="ackEnabled && item['event.severity_label']" class="mx-2" icon x-small
@click="ack($event, item, index, !isFilterToggleEnabled('acknowledged'))"
:color="item['event.severity_label'] + '_' + isFilterToggleEnabled('acknowledged') | colorSeverity">
<v-icon :title="isFilterToggleEnabled('acknowledged') ? i18n.alertUndoAcknowledge : i18n.alertAcknowledge">fa-bell</v-icon>
</v-btn>
<v-btn id="escalateButton" v-if="escalateEnabled" class="mx-2" icon x-small
@click="ack($event, item, index, true, true)"
:color="isFilterToggleEnabled('escalated') || item['event.escalated'] == true ? 'secondary' : 'primary'">
<v-icon :title="isFilterToggleEnabled('escalated') || item['event.escalated'] == true ? i18n.alertEscalated : i18n.escalate">fa-exclamation-triangle</v-icon>
</v-btn>
</td>
<td>
<v-tooltip bottom v-if="loaded && eventsEnabled && metricsEnabled && ( (groupByHeaders.length==3 && groupByHeaders[1]['value']=='count' ) || (groupByHeaders.length==5 && groupByHeaders[1]['value']=='count' && groupByHeaders[2]['value']=='rule.name' && groupByHeaders[3]['value']=='event.module' && groupByHeaders[4]['value']=='event.severity_label') ) ">
Expand Down Expand Up @@ -551,30 +537,16 @@ <h5>
<v-icon v-if="isExpanded(item)" :alt="i18n.eventExpand" :title="i18n.eventExpandHelp">fa-angle-down</v-icon>
<v-icon v-if="!isExpanded(item)" :alt="i18n.eventExpand" :title="i18n.eventExpandHelp">fa-angle-right</v-icon>
</v-btn>
<v-tooltip bottom v-if="ackEnabled && item['event.severity_label']">
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">
<v-btn id="alertButton" v-if="ackEnabled && item['event.severity_label']" class="mx-2" icon x-small
@click="ack($event, item, index, !isFilterToggleEnabled('acknowledged'))"
:color="item['event.severity_label'] + '_' + isFilterToggleEnabled('acknowledged') | colorSeverity">
<v-icon>fa-bell</v-icon>
</v-btn>
</span>
</template>
<span>{{ isFilterToggleEnabled('acknowledged') ? i18n.alertUndoAcknowledge : i18n.alertAcknowledge }}</span>
</v-tooltip>
<v-tooltip bottom v-if="escalateEnabled">
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">
<v-btn id="escalateButton" v-if="escalateEnabled" class="mx-2" icon x-small
@click="ack($event, item, index, true, true)"
:color="isFilterToggleEnabled('escalated') || item['event.escalated'] == true ? 'secondary' : 'primary'">
<v-icon>fa-exclamation-triangle</v-icon>
</v-btn>
</span>
</template>
<span>{{ isFilterToggleEnabled('escalated') || item['event.escalated'] == true ? i18n.alertEscalated : i18n.escalate }}</span>
</v-tooltip>
<v-btn id="alertButton" v-if="ackEnabled && item['event.severity_label']" class="mx-2" icon x-small
@click="ack($event, item, index, !isFilterToggleEnabled('acknowledged'))"
:color="item['event.severity_label'] + '_' + isFilterToggleEnabled('acknowledged') | colorSeverity">
<v-icon :title="isFilterToggleEnabled('acknowledged') ? i18n.alertUndoAcknowledge : i18n.alertAcknowledge">fa-bell</v-icon>
</v-btn>
<v-btn id="escalateButton" v-if="escalateEnabled" class="mx-2" icon x-small
@click="ack($event, item, index, true, true)"
:color="isFilterToggleEnabled('escalated') || item['event.escalated'] == true ? 'secondary' : 'primary'">
<v-icon :title="isFilterToggleEnabled('escalated') || item['event.escalated'] == true ? i18n.alertEscalated : i18n.escalate">fa-exclamation-triangle</v-icon>
</v-btn>
</td>
<td v-for="field in eventHeaders" :key="field.value">
<div class="quick-action-trigger d-inline-block" v-text="item[field.value]" @click="toggleQuickAction($event, item, field.value, item[field.value])"></div>
Expand Down

0 comments on commit 2ce1a5b

Please sign in to comment.