code improvements
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -83,5 +83,5 @@
|
||||
{#if editable && editing}
|
||||
<input bind:value={editValue} onkeyup={typed} autofocus />
|
||||
{:else}
|
||||
<svelte:element this={type} {onclick} {onmousedown} {onmouseup} {ontouchstart} {ontouchend} class={{editable}} title={t('double_click_to_edit')} >{value}</svelte:element>
|
||||
<svelte:element this={type} href="" {onclick} {onmousedown} {onmouseup} {ontouchstart} {ontouchend} class={{editable}} title={t('double_click_to_edit')} >{value}</svelte:element>
|
||||
{/if}
|
||||
|
||||
@@ -32,12 +32,13 @@ onMount(fetchModules);
|
||||
</style>
|
||||
|
||||
<nav>
|
||||
<a onclick={() => router.navigate('/user')}>{t('users')}</a>
|
||||
<a onclick={() => router.navigate('/document')}>{t('documents')}</a>
|
||||
<a onclick={() => router.navigate('/project')}>{t('projects')}</a>
|
||||
<a href="" onclick={() => router.navigate('/user')}>{t('users')}</a>
|
||||
<a href="" onclick={() => router.navigate('/project')}>{t('projects')}</a>
|
||||
<a href="" onclick={() => router.navigate('/task')}>{t('tasks')}</a>
|
||||
<a href="" onclick={() => router.navigate('/document')}>{t('documents')}</a>
|
||||
<a href="https://svelte.dev/tutorial/svelte/state" target="_blank">{t('tutorial')}</a>
|
||||
{#each modules as module,i}<a href={module.url}>{module.name}</a>{/each}
|
||||
{#if user.name }
|
||||
<a onclick={logout}>{t('logout')}</a>
|
||||
{/if}
|
||||
</nav>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user