mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-30 01:17:37 +03:00
Always go to the board when switching projects
This commit is contained in:
parent
838150c7a4
commit
867d82efde
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user