added kanban button to task display
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -66,6 +66,12 @@
|
||||
return Object.fromEntries(candidates);
|
||||
}
|
||||
|
||||
function gotoKanban(){
|
||||
if (!project) return;
|
||||
router.navigate(`/project/${project.id}/kanban`)
|
||||
}
|
||||
|
||||
|
||||
function gotoParent(){
|
||||
if (!task.parent_task_id) return;
|
||||
router.navigate(`/task/${task.parent_task_id}/view`)
|
||||
@@ -139,7 +145,6 @@
|
||||
loadChildren();
|
||||
}
|
||||
|
||||
|
||||
function showPrjFiles(){
|
||||
var url = `/files/project/${project.id}`;
|
||||
window.open(url, '_blank').focus();
|
||||
@@ -206,6 +211,7 @@
|
||||
<div>{t('project')}</div>
|
||||
<div class="project">
|
||||
<a href="#" onclick={gotoProject}>{project.name}</a>
|
||||
<button class="symbol" title={t('kanban')} onclick={gotoKanban}></button>
|
||||
<button class="symbol" title={t('files')} onclick={showPrjFiles}></button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user