mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
[PUI] Fix settings intenttation (#7905)
Closes https://github.com/invenhost/InvenTree/issues/104
This commit is contained in:
parent
8a52bd60af
commit
8bf4ce573f
@ -30,7 +30,7 @@ export function SettingsHeader({
|
||||
{shorthand && <Text c="dimmed">({shorthand})</Text>}
|
||||
</Group>
|
||||
<Group>
|
||||
<Text c="dimmed">{subtitle}</Text>
|
||||
{subtitle ? <Text c="dimmed">{subtitle}</Text> : null}
|
||||
{switch_text && switch_link && switch_condition && (
|
||||
<Anchor component={Link} to={switch_link}>
|
||||
<IconSwitch size={14} />
|
||||
|
@ -148,7 +148,11 @@ export default function UserSettings() {
|
||||
<Stack gap="xs">
|
||||
<SettingsHeader
|
||||
title={t`Account Settings`}
|
||||
subtitle={`${user?.first_name} ${user?.last_name}`}
|
||||
subtitle={
|
||||
user?.first_name && user?.last_name
|
||||
? `${user?.first_name} ${user?.last_name}`
|
||||
: null
|
||||
}
|
||||
shorthand={user?.username || ''}
|
||||
switch_link="/settings/system"
|
||||
switch_text={<Trans>Switch to System Setting</Trans>}
|
||||
|
Loading…
Reference in New Issue
Block a user