implemented deletion and updating of notes
This commit is contained in:
@@ -21,6 +21,12 @@ async function fetchModules(){
|
||||
console.log('error');
|
||||
}
|
||||
}
|
||||
|
||||
function go(path){
|
||||
router.navigate(path);
|
||||
return false;
|
||||
}
|
||||
|
||||
onMount(fetchModules);
|
||||
</script>
|
||||
|
||||
@@ -31,10 +37,11 @@ onMount(fetchModules);
|
||||
</style>
|
||||
|
||||
<nav>
|
||||
<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="#" onclick={() => go('/user')}>{t('users')}</a>
|
||||
<a href="#" onclick={() => go('/project')}>{t('projects')}</a>
|
||||
<a href="#" onclick={() => go('/task')}>{t('tasks')}</a>
|
||||
<a href="#" onclick={() => go('/document')}>{t('documents')}</a>
|
||||
<a href="#" onclick={() => go('/notes')}>{t('notes')}</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 }
|
||||
|
||||
Reference in New Issue
Block a user