mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Fix not disabling the Reload button correctly
This commit is contained in:
@@ -122,9 +122,9 @@ export class SettingsNavigationDialog extends NavigationDialog {
|
||||
classes: ['bx-settings-reload-button', 'bx-gone'],
|
||||
style: ButtonStyle.FOCUSABLE | ButtonStyle.FULL_WIDTH,
|
||||
onClick: e => {
|
||||
const $target = e.target as HTMLButtonElement;
|
||||
const $target = (e.target as HTMLButtonElement).closest('button')!;
|
||||
$target.disabled = true;
|
||||
$target.textContent = t('settings-reloading');
|
||||
$target.firstElementChild!.textContent = t('settings-reloading');
|
||||
|
||||
window.location.reload();
|
||||
},
|
||||
|
Reference in New Issue
Block a user