diff --git a/src/lib/components/layout/Navbar/Menu.svelte b/src/lib/components/layout/Navbar/Menu.svelte index 36357fd539..7f6a2e6355 100644 --- a/src/lib/components/layout/Navbar/Menu.svelte +++ b/src/lib/components/layout/Navbar/Menu.svelte @@ -379,17 +379,18 @@ {/if} - - - + {#if $user?.role === 'admin' || ($user.permissions?.chat?.export ?? true)} + + + + + {$i18n.t('Download')} + - {$i18n.t('Download')} - - {#if $user?.role === 'admin' || ($user.permissions?.chat?.export ?? true)} {$i18n.t('Export chat (.json)')} - {/if} - { - downloadTxt(); - }} - > - {$i18n.t('Plain text (.txt)')} - - { - downloadPdf(); - }} - > - {$i18n.t('PDF document (.pdf)')} - - + { + downloadTxt(); + }} + > + {$i18n.t('Plain text (.txt)')} + + + { + downloadPdf(); + }} + > + {$i18n.t('PDF document (.pdf)')} + + + {/if} {/if} - - - - {$i18n.t('Download')} - + + + {$i18n.t('Download')} + - {#if $user?.role === 'admin' || ($user.permissions?.chat?.export ?? true)} {$i18n.t('Export chat (.json)')} - {/if} - { - downloadTxt(); - }} - > - {$i18n.t('Plain text (.txt)')} - + { + downloadTxt(); + }} + > + {$i18n.t('Plain text (.txt)')} + - { - downloadPdf(); - }} - > - {$i18n.t('PDF document (.pdf)')} - - + { + downloadPdf(); + }} + > + {$i18n.t('PDF document (.pdf)')} + + + {/if}