Browse Source

added links from project view to times and files

module/files
Stephan Richter 1 month ago
parent
commit
b9400be8c7
  1. 12
      frontend/src/routes/project/View.svelte

12
frontend/src/routes/project/View.svelte

@ -154,6 +154,14 @@
loadTasks(); loadTasks();
} }
function showFiles(e){
window.open(`/files/project/${id}`, '_blank').focus();
}
function showTimes(e){
window.open(`/time?project=${id}`, '_blank').focus();
}
onMount(loadProject); onMount(loadProject);
</script> </script>
@ -183,9 +191,9 @@
{/if} {/if}
<div>{t('context')}</div> <div>{t('context')}</div>
<div> <div>
<button>{t('files')}</button> <button onclick={showFiles}>{t('files')}</button>
<button>{t('models')}</button> <button>{t('models')}</button>
<button>{t('times')}</button> <button onclick={showTimes}>{t('times')}</button>
</div> </div>
{#if showSettings} {#if showSettings}
<div>{t('extended_settings')}</div> <div>{t('extended_settings')}</div>

Loading…
Cancel
Save