fix(FluxNote): stop skeleton showing when repo is inaccessible

The skeleton was conditioned on `isLoading || !hasContent`, so it
persisted forever when readme resolved to null (e.g. private repo
visited while logged out). Skeleton now only shows while loading.
This commit is contained in:
Julien Calixte
2026-04-27 10:07:08 +02:00
parent 836b480ea6
commit 28ca9a17a9

View File

@@ -101,9 +101,9 @@ onUnmounted(() => {
<cache-all-notes /> <cache-all-notes />
</div> </div>
<slot /> <slot />
<skeleton-loader v-if="isLoading || !hasContent" /> <skeleton-loader v-if="isLoading" />
<p <p
v-else-if="withContent" v-else-if="withContent && hasContent"
class="note-display" class="note-display"
v-html="renderedContent" v-html="renderedContent"
/> />