Browse Source

bugfix: clicking on project in project list did not cause navigation

module/search
Stephan Richter 2 months ago
parent
commit
6031bb4445
  1. 8
      frontend/src/routes/project/List.svelte

8
frontend/src/routes/project/List.svelte

@ -49,8 +49,10 @@ @@ -49,8 +49,10 @@
}
}
function show(pid){
router.navigate(`/project/${pid}/view`)
function show(e,pid){
e.preventDefault();
router.navigate(`/project/${pid}/view`);
return false;
}
function toggleClosed(){
@ -90,7 +92,7 @@ @@ -90,7 +92,7 @@
{#each sortedProjects as project}
<tr>
<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 class="company" onclick={() => show(project.id)} >
{#if project.company_id && companies[project.company_id]}

Loading…
Cancel
Save