Display BotFactory logs.
This commit is contained in:
parent
b6de2a6f55
commit
c2d84eef87
@ -11,8 +11,10 @@ import Panel from '../../../components/Panel';
|
|||||||
import Toolbar from '../../../components/Toolbar';
|
import Toolbar from '../../../components/Toolbar';
|
||||||
|
|
||||||
import BotRecords from './BotRecords';
|
import BotRecords from './BotRecords';
|
||||||
|
import LogPoller from '../../../components/LogPoller';
|
||||||
|
|
||||||
const TAB_RECORDS = 'records';
|
const TAB_RECORDS = 'records';
|
||||||
|
const TAB_LOG = 'log';
|
||||||
|
|
||||||
const useStyles = makeStyles(theme => ({
|
const useStyles = makeStyles(theme => ({
|
||||||
root: {}
|
root: {}
|
||||||
@ -29,6 +31,7 @@ const Bots = () => {
|
|||||||
<Toolbar>
|
<Toolbar>
|
||||||
<Tabs value={tab} onChange={(_, value) => setTab(value)}>
|
<Tabs value={tab} onChange={(_, value) => setTab(value)}>
|
||||||
<Tab value={TAB_RECORDS} label='Records' />
|
<Tab value={TAB_RECORDS} label='Records' />
|
||||||
|
<Tab value={TAB_LOG} label='Log' />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
}
|
}
|
||||||
@ -36,6 +39,10 @@ const Bots = () => {
|
|||||||
{tab === TAB_RECORDS && (
|
{tab === TAB_RECORDS && (
|
||||||
<BotRecords />
|
<BotRecords />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{tab === TAB_LOG && (
|
||||||
|
<LogPoller service='bot-factory' />
|
||||||
|
)}
|
||||||
</Panel>
|
</Panel>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user