We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3f303 commit 9441968Copy full SHA for 9441968
src/renderer/routes/Accounts.tsx
@@ -153,9 +153,17 @@ export const AccountsRoute: FC = () => {
153
type="button"
154
className={cn(BUTTON_CLASS_NAME, 'px-0')}
155
title={`Refresh ${account.user.login}`}
156
- onClick={async () => {
+ onClick={async (e) => {
157
+ const button = e.currentTarget;
158
+ button.classList.add('animate-spin');
159
+
160
await refreshAccount(account);
161
navigate('/accounts', { replace: true });
162
163
+ // typically the above completes very quickly, so add an artificial delay to allow the spinner to do a few loops
164
+ setTimeout(() => {
165
+ button.classList.remove('animate-spin');
166
+ }, 500);
167
}}
168
>
169
<SyncIcon
0 commit comments