Prevent navigation on clicking refresh button

This commit is contained in:
Mattias Granlund 2023-11-03 12:27:21 +00:00
parent 58a74873fe
commit d2ba79a695

View File

@ -161,9 +161,10 @@
<Tooltip label="Fetch from upstream">
<IconButton
class="items-center justify-center align-top hover:bg-light-150 dark:hover:bg-dark-700"
on:click={() => {
on:click={(e) => {
fetching = true;
branchController.fetchFromTarget().finally(() => (fetching = false));
e.preventDefault();
}}
>
<div class:animate-spin={fetching}>