mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-03 03:33:16 +03:00
Prevent navigation on clicking refresh button
This commit is contained in:
parent
58a74873fe
commit
d2ba79a695
@ -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}>
|
||||
|
Loading…
Reference in New Issue
Block a user