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