Always go to the board when switching projects

This commit is contained in:
Mattias Granlund 2023-12-12 15:41:45 +01:00
parent 838150c7a4
commit 867d82efde

View File

@ -16,10 +16,6 @@
export function hide() { export function hide() {
hidden = true; hidden = true;
} }
function changeProject(projectId: string) {
goto(location.href.replace($page.params.projectId, projectId));
}
</script> </script>
{#if !hidden} {#if !hidden}
@ -33,7 +29,7 @@
icon={selected ? 'tick' : undefined} icon={selected ? 'tick' : undefined}
on:click={() => { on:click={() => {
hide(); hide();
changeProject(project.id); goto(`/${project.id}/board`);
}} }}
> >
{project.title} {project.title}