Merge upstream/main 73c14ac74

This commit is contained in:
daikaginza committed 2026-11-04 11:19:55 +07:00
commit c866f7a3c8
1627 files changed
+163582 -24367

No files matched your search

+5 -6
View File
@@ -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();
},
);
});