forked from cerc-io/laconic-console
Merge pull request #33 from dxos/egorgripasov-bot-logs
Display BotFactory logs.
This commit is contained in:
commit
87efdda548
@ -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>
|
||||
);
|
||||
};
|
||||
|
@ -30,6 +30,7 @@ const types = [
|
||||
{ key: 'wrn:service', label: 'Service' },
|
||||
{ key: 'wrn:app', label: 'App' },
|
||||
{ key: 'wrn:bot', label: 'Bot' },
|
||||
{ key: 'wrn:bot-factory', label: 'Bot Factory' },
|
||||
{ key: 'wrn:type', label: 'Type' }
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user