fix: 未配置 CurseForge API Key 时浏览页仍显示导航栏
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
此前在世界地图浏览(projectType=world)且未配置 CurseForge API Key 时,整个 BrowsePageLayout 被 v-if 隐藏,导致选择栏(整合包/模组/ 资源包/…/服务器/收藏夹)与搜索栏全部空白。 现在始终渲染 BrowsePageLayout,仅在其结果区上方(#above-results) 于该场景下显示“地图不可用 / 请配置 CurseForge API Key”的提示,导航 与搜索栏保持可见。
This commit is contained in:
1 parent
913e0071dd
commit
9b75ca4f3f
1 file changed
+4
-4
@@ -3093,7 +3093,7 @@ provideBrowseManager({
|
||||
|
||||
<template>
|
||||
<div data-onboarding-id="browse-content" class="flex flex-col gap-3 p-6">
|
||||
<BrowsePageLayout v-if="!isWorldMapBrowse || curseForgeCapability.configured">
|
||||
<BrowsePageLayout>
|
||||
<template #nav-tabs-actions>
|
||||
<ButtonStyled size="large" type="transparent">
|
||||
<button :disabled="translationLoading" @click="toggleTranslation">
|
||||
@@ -3193,14 +3193,14 @@ provideBrowseManager({
|
||||
{{ formatMessage(messages.fuzzySearchSuffix) }}
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
</BrowsePageLayout>
|
||||
<EmptyState
|
||||
v-else
|
||||
v-if="isWorldMapBrowse && !curseForgeCapability.configured"
|
||||
type="empty-inbox"
|
||||
:heading="formatMessage(messages.mapsUnavailable)"
|
||||
:description="formatMessage(messages.mapsUnavailableDescription)"
|
||||
/>
|
||||
</template>
|
||||
</BrowsePageLayout>
|
||||
<CreationFlowModal
|
||||
v-if="isServerContext && projectType === 'modpack'"
|
||||
ref="serverSetupModalRef"
|
||||
|
||||
Reference in new issue
Block a user