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:
@@ -101,9 +101,9 @@ onUnmounted(() => {
|
||||
<cache-all-notes />
|
||||
</div>
|
||||
<slot />
|
||||
<skeleton-loader v-if="isLoading || !hasContent" />
|
||||
<skeleton-loader v-if="isLoading" />
|
||||
<p
|
||||
v-else-if="withContent"
|
||||
v-else-if="withContent && hasContent"
|
||||
class="note-display"
|
||||
v-html="renderedContent"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user