Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ICAT
Datahub
Commits
28ed0190
Commit
28ed0190
authored
Mar 28, 2022
by
Marjolaine Bodin
Browse files
#582
add broadcast filter
parent
c32575f9
Pipeline
#70633
passed with stage
in 16 minutes and 39 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/Logbook/List/EventTextBox.js
View file @
28ed0190
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
)}
>
...
...
src/components/Logbook/Menu/SettingLogbookMenuPanel.js
View file @
28ed0190
...
...
@@ -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
}],
},
];
/*
...
...
src/constants/eventTypes.js
View file @
28ed0190
/* 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
'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment