Commit 28ed0190 authored by Marjolaine Bodin's avatar Marjolaine Bodin
Browse files

#582 add broadcast filter

parent c32575f9
Pipeline #70633 passed with stage
in 16 minutes and 39 seconds
import React from 'react';
import {
ANNOTATION,
BROADCAST,
EVENT_CATEGORY_COMMANDLINE,
EVENT_CATEGORY_COMMENT,
EVENT_CATEGORY_DEBUG,
......@@ -47,7 +48,7 @@ function EventTextBox(props) {
);
}
if (event.type === NOTIFICATION) {
if (event.type === NOTIFICATION || event.type === BROADCAST) {
if (!event.previousVersionEvent) {
return (
<div className={getTextColor(event.category)}>
......
......@@ -8,6 +8,7 @@ import {
NOTIFICATION,
EVENT_CATEGORY_COMMENT,
EVENT_CATEGORY_DEBUG,
BROADCAST,
} from '../../../constants/eventTypes';
import { useDispatch } from 'react-redux';
import styles from './SettingLogbookMenuPanel.module.css';
......@@ -53,6 +54,11 @@ const logTypeCheckBoxes = [
label: 'Command Lines',
value: commandLineValue,
},
{
name: 'showBroadcast',
label: 'Machine',
value: [{ type: BROADCAST }],
},
];
/*
......
/* Constants mapping the corresponding concepts as they are stored in the DB */
export const ANNOTATION = 'annotation';
export const NOTIFICATION = 'notification';
export const BROADCAST = 'broadcast';
export const EVENT_CATEGORY_COMMENT = 'comment';
export const EVENT_CATEGORY_COMMANDLINE = 'commandline';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment