mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fixed nav menus.
This commit is contained in:
parent
dcc1ae1864
commit
d7fd22645c
9 changed files with 62 additions and 7 deletions
|
|
@ -21,6 +21,7 @@ export function AdminLayout({ children }: { children: ReactNode }) {
|
|||
border="right"
|
||||
backgroundColor
|
||||
marginRight="2"
|
||||
padding="3"
|
||||
>
|
||||
<AdminNav />
|
||||
</Column>
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export function UserEditForm({ userId, onSave }: { userId: string; onSave?: () =
|
|||
label={formatMessage(labels.role)}
|
||||
rules={{ required: formatMessage(labels.required) }}
|
||||
>
|
||||
<Select defaultSelectedKey={user.role}>
|
||||
<Select defaultValue={user.role}>
|
||||
<ListItem id={ROLES.viewOnly} data-test="dropdown-item-viewOnly">
|
||||
{formatMessage(labels.viewOnly)}
|
||||
</ListItem>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ export function SettingsLayout({ children }: { children: ReactNode }) {
|
|||
border="right"
|
||||
backgroundColor
|
||||
marginRight="2"
|
||||
padding="3"
|
||||
>
|
||||
<SettingsNav />
|
||||
</Column>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { SettingsLayout } from './SettingsLayout';
|
|||
|
||||
export default function ({ children }) {
|
||||
if (process.env.cloudMode) {
|
||||
//return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
return <SettingsLayout>{children}</SettingsLayout>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue