mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00:00
Hide settings for readonly role
Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
parent
249023b316
commit
12e6f0d6f9
@ -870,12 +870,14 @@
|
||||
class:vertical-mobile={$deviceInfo.navigator.direction === 'vertical'}
|
||||
class:mini={appsMini}
|
||||
>
|
||||
<AppItem
|
||||
icon={IconSettings}
|
||||
label={setting.string.Settings}
|
||||
size={appsMini ? 'small' : 'large'}
|
||||
on:click={() => showPopup(AppSwitcher, { apps }, popupPosition)}
|
||||
/>
|
||||
{#if account.role !== AccountRole.ReadOnlyGuest}
|
||||
<AppItem
|
||||
icon={IconSettings}
|
||||
label={setting.string.Settings}
|
||||
size={appsMini ? 'small' : 'large'}
|
||||
on:click={() => showPopup(AppSwitcher, { apps }, popupPosition)}
|
||||
/>
|
||||
{/if}
|
||||
<a href={supportLink} target="_blank" rel="noopener noreferrer">
|
||||
<AppItem
|
||||
icon={support.icon.Support}
|
||||
@ -1048,9 +1050,7 @@
|
||||
{#if $sidebarStore.variant === SidebarVariant.EXPANDED && !$sidebarStore.float}
|
||||
<Separator name={'main'} index={0} color={'transparent'} separatorSize={0} short />
|
||||
{/if}
|
||||
{#if account.role !== AccountRole.ReadOnlyGuest}
|
||||
<WidgetsBar />
|
||||
{/if}
|
||||
<WidgetsBar />
|
||||
</div>
|
||||
</div>
|
||||
<Dock />
|
||||
|
Loading…
Reference in New Issue
Block a user