added debug
parent
66e131c83a
commit
4467557dc7
|
@ -293,6 +293,7 @@
|
|||
"card": {
|
||||
"checkbox": {
|
||||
"info": "INFO",
|
||||
"debug": "DEBUG",
|
||||
"warning": "WARNUNG",
|
||||
"error": "FEHLER"
|
||||
}
|
||||
|
|
|
@ -336,6 +336,7 @@
|
|||
"card": {
|
||||
"checkbox": {
|
||||
"info": "INFO",
|
||||
"debug": "DEBUG",
|
||||
"warning": "WARNING",
|
||||
"error": "ERROR"
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ export default function LogCard({
|
|||
}) {
|
||||
const { t } = useTranslation();
|
||||
const [checkboxInfoChecked, setCheckboxInfoChecked] = useState(true);
|
||||
const [checkboxDebugChecked, setCheckboxDebugChecked] = useState(true);
|
||||
const [checkboxWarningChecked, setCheckboxWarningChecked] = useState(true);
|
||||
const [checkboxErrorChecked, setCheckboxErrorChecked] = useState(true);
|
||||
const virtuosoRef = useRef();
|
||||
|
@ -128,6 +129,7 @@ export default function LogCard({
|
|||
|
||||
return (
|
||||
(checkboxInfoChecked && logType === "I") ||
|
||||
(checkboxDebugChecked && logType === "D") ||
|
||||
(checkboxWarningChecked && logType === "W") ||
|
||||
(checkboxErrorChecked && logType === "E")
|
||||
);
|
||||
|
@ -152,6 +154,15 @@ export default function LogCard({
|
|||
{t("logCard.card.checkbox.info")}
|
||||
</Checkbox>
|
||||
</Col>
|
||||
<Col>
|
||||
<Checkbox
|
||||
disabled={customResult !== undefined}
|
||||
checked={checkboxDebugChecked}
|
||||
onChange={(e) => setCheckboxDebugChecked(e.target.checked)}
|
||||
>
|
||||
{t("logCard.card.checkbox.debug")}
|
||||
</Checkbox>
|
||||
</Col>
|
||||
<Col>
|
||||
<Checkbox
|
||||
disabled={customResult !== undefined}
|
||||
|
@ -206,6 +217,8 @@ export default function LogCard({
|
|||
|
||||
if (checkboxInfoChecked && logType === "I") {
|
||||
color = "#44bd32";
|
||||
} else if (checkboxDebugChecked && logType === "D") {
|
||||
color = "#9b59b6";
|
||||
} else if (checkboxWarningChecked && logType === "W") {
|
||||
color = "#e67e22";
|
||||
} else if (checkboxErrorChecked && logType === "E") {
|
||||
|
|
Loading…
Reference in New Issue