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
+7
-7
@@ -3093,7 +3093,7 @@ provideBrowseManager({
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div data-onboarding-id="browse-content" class="flex flex-col gap-3 p-6">
|
<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>
|
<template #nav-tabs-actions>
|
||||||
<ButtonStyled size="large" type="transparent">
|
<ButtonStyled size="large" type="transparent">
|
||||||
<button :disabled="translationLoading" @click="toggleTranslation">
|
<button :disabled="translationLoading" @click="toggleTranslation">
|
||||||
@@ -3193,14 +3193,14 @@ provideBrowseManager({
|
|||||||
{{ formatMessage(messages.fuzzySearchSuffix) }}
|
{{ formatMessage(messages.fuzzySearchSuffix) }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<EmptyState
|
||||||
|
v-if="isWorldMapBrowse && !curseForgeCapability.configured"
|
||||||
|
type="empty-inbox"
|
||||||
|
:heading="formatMessage(messages.mapsUnavailable)"
|
||||||
|
:description="formatMessage(messages.mapsUnavailableDescription)"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</BrowsePageLayout>
|
</BrowsePageLayout>
|
||||||
<EmptyState
|
|
||||||
v-else
|
|
||||||
type="empty-inbox"
|
|
||||||
:heading="formatMessage(messages.mapsUnavailable)"
|
|
||||||
:description="formatMessage(messages.mapsUnavailableDescription)"
|
|
||||||
/>
|
|
||||||
<CreationFlowModal
|
<CreationFlowModal
|
||||||
v-if="isServerContext && projectType === 'modpack'"
|
v-if="isServerContext && projectType === 'modpack'"
|
||||||
ref="serverSetupModalRef"
|
ref="serverSetupModalRef"
|
||||||
|
|||||||
Reference in new issue
Block a user