We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b6ea3 commit 421aba7Copy full SHA for 421aba7
src/lib/components/layout/Sidebar.svelte
@@ -914,15 +914,15 @@
914
name={$i18n.t('Channels')}
915
chevron={false}
916
dragAndDrop={false}
917
- onAdd={async () => {
918
- if ($user?.role === 'admin') {
919
- await tick();
+ onAdd={$user?.role === 'admin'
+ ? async () => {
+ await tick();
920
921
- setTimeout(() => {
922
- showCreateChannel = true;
923
- }, 0);
924
- }
925
- }}
+ setTimeout(() => {
+ showCreateChannel = true;
+ }, 0);
+ }
+ : null}
926
onAddLabel={$i18n.t('Create Channel')}
927
>
928
{#each $channels as channel}
0 commit comments