added links from project view to times and files
This commit is contained in:
@@ -154,6 +154,14 @@
|
||||
loadTasks();
|
||||
}
|
||||
|
||||
function showFiles(e){
|
||||
window.open(`/files/project/${id}`, '_blank').focus();
|
||||
}
|
||||
|
||||
function showTimes(e){
|
||||
window.open(`/time?project=${id}`, '_blank').focus();
|
||||
}
|
||||
|
||||
onMount(loadProject);
|
||||
</script>
|
||||
|
||||
@@ -183,9 +191,9 @@
|
||||
{/if}
|
||||
<div>{t('context')}</div>
|
||||
<div>
|
||||
<button>{t('files')}</button>
|
||||
<button onclick={showFiles}>{t('files')}</button>
|
||||
<button>{t('models')}</button>
|
||||
<button>{t('times')}</button>
|
||||
<button onclick={showTimes}>{t('times')}</button>
|
||||
</div>
|
||||
{#if showSettings}
|
||||
<div>{t('extended_settings')}</div>
|
||||
|
||||
Reference in New Issue
Block a user