feat(shared): implemented log view
This commit is contained in:
parent
0a8cedd23f
commit
9ffb4f5261
21 changed files with 316 additions and 279 deletions
|
@ -13,13 +13,13 @@ const UiSetting = ({ name, control, ...rest }) => (
|
|||
<MenuItem
|
||||
{...rest}
|
||||
name={name}
|
||||
allowToggle={name !== 'control' && control > 3}
|
||||
allowToggle={!['control', 'view'].includes(name) && control > 3}
|
||||
control={control}
|
||||
/>
|
||||
)
|
||||
|
||||
export const UiSettings = ({ update, ui, control, language, DynamicDocs }) => {
|
||||
const settingsConfig = loadSettingsConfig(ui)
|
||||
export const UiSettings = ({ update, ui, control, language, DynamicDocs, view, setView }) => {
|
||||
const settingsConfig = loadSettingsConfig(ui, view)
|
||||
|
||||
return (
|
||||
<WorkbenchMenu
|
||||
|
@ -37,6 +37,7 @@ export const UiSettings = ({ update, ui, control, language, DynamicDocs }) => {
|
|||
name: 'uiSettings',
|
||||
ns,
|
||||
updateFunc: update.ui,
|
||||
passProps: { view, setView },
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue