mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 17:22:19 +00:00
Merge upstream/main 73c14ac74
This commit is contained in:
commit
c866f7a3c8
1627 files changed
+163582
-24367
No files matched your search
@@ -87,10 +87,9 @@ export function _initGlobalContextPanel() {
|
||||
!this._dataManager?.layers?.has('military-installations')
|
||||
)
|
||||
return;
|
||||
const button = this._installationsSearchBtn;
|
||||
if (button.getAttribute('aria-busy') === 'true') return;
|
||||
button.setAttribute('aria-disabled', 'true');
|
||||
button.setAttribute('aria-busy', 'true');
|
||||
if (this._installationsSearchBusy) return;
|
||||
this._installationsSearchBusy = true;
|
||||
this._presentContext();
|
||||
void this._runUserFacingContextAction(async (notificationToken) => {
|
||||
const enabled = await this._dataManager.setEnabled(
|
||||
'military-installations',
|
||||
@@ -119,8 +118,8 @@ export function _initGlobalContextPanel() {
|
||||
}, t('Nearby installations could not be refreshed; try again')).finally(
|
||||
() => {
|
||||
if (this.destroyed) return;
|
||||
button.setAttribute('aria-disabled', 'false');
|
||||
button.setAttribute('aria-busy', 'false');
|
||||
this._installationsSearchBusy = false;
|
||||
this._presentContext();
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user