bugfix: clicking on project in project list did not cause navigation
This commit is contained in:
@@ -49,8 +49,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function show(pid){
|
function show(e,pid){
|
||||||
router.navigate(`/project/${pid}/view`)
|
e.preventDefault();
|
||||||
|
router.navigate(`/project/${pid}/view`);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleClosed(){
|
function toggleClosed(){
|
||||||
@@ -90,7 +92,7 @@
|
|||||||
{#each sortedProjects as project}
|
{#each sortedProjects as project}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name">
|
<td class="name">
|
||||||
<a href="" onclick={() => show(project.id)}>{project.name}</a>
|
<a href="#" onclick={e => show(e,project.id)}>{project.name}</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="company" onclick={() => show(project.id)} >
|
<td class="company" onclick={() => show(project.id)} >
|
||||||
{#if project.company_id && companies[project.company_id]}
|
{#if project.company_id && companies[project.company_id]}
|
||||||
|
|||||||
Reference in New Issue
Block a user