fix(plugins): avoid list flash when opening plugin (#13690)

This commit is contained in:
Piyush Bhaskar
2025-12-16 17:38:09 +05:30
committed by GitHub
parent 2d2cb00cab
commit 1903e6fac5

View File

@@ -1,6 +1,6 @@
<template> <template>
<TopNavBar :title="routeInfo.title" :breadcrumb="routeInfo?.breadcrumb" /> <TopNavBar :title="routeInfo.title" :breadcrumb="routeInfo?.breadcrumb" />
<template v-if="!pluginIsSelected"> <template v-if="isPluginList">
<PluginHome v-if="filteredPlugins" :plugins="filteredPlugins" /> <PluginHome v-if="filteredPlugins" :plugins="filteredPlugins" />
</template> </template>
<DocsLayout v-else> <DocsLayout v-else>
@@ -133,8 +133,9 @@
const releaseNotesUrl = computed(() => getPluginReleaseUrl(pluginType.value)); const releaseNotesUrl = computed(() => getPluginReleaseUrl(pluginType.value));
const pluginIsSelected = computed(
() => pluginType.value !== undefined && pluginsStore.plugin !== undefined const isPluginList = computed(
() => typeof route.name === "string" && route.name === "plugins/list"
); );
function loadToc() { function loadToc() {