mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix(cockpit): a place pack that will not load ends the loading batch failed; flags keep their neighbours out from under the border and out of a scaled flag's edge; a new ride asks again for a sheet that failed
This commit is contained in:
1 parent
5a6cf22be1
commit
e954734379
16 files changed
+198
-55
No files matched your search
@@ -195,9 +195,14 @@ const mark = computed(() =>
|
||||
const flagsReady = ref(false);
|
||||
const flagsFailed = ref(false);
|
||||
watch(
|
||||
() => (mark.value?.kind === 'flag' ? mark.value.code : null),
|
||||
async (code) => {
|
||||
if (!code || flagsReady.value) return;
|
||||
// Keyed on the satellite too: after a failed load, the next ride asks
|
||||
// again even when its owner is the same country.
|
||||
() =>
|
||||
mark.value?.kind === 'flag'
|
||||
? `${mark.value.code}:${orbital.value?.noradId ?? ''}`
|
||||
: null,
|
||||
async (key) => {
|
||||
if (!key || flagsReady.value) return;
|
||||
const ready = await preloadOwnerFlags();
|
||||
flagsReady.value = ready;
|
||||
flagsFailed.value = !ready;
|
||||
|
||||
Reference in new issue
Block a user