Skip to content

Commit

Permalink
fix: persist help list position on navigate back (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Oct 17, 2023
1 parent 89631ba commit 54b00cb
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions resources/js/components/Help/Help.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,20 @@
/>
</div>

<help-list
v-else-if="topic === null && sections.length"
:sections="sections"
@topic:open="topic = $event"
/>
<template v-if="sections.length">
<div class="flex flex-col h-full" v-show="topic === null">
<help-list
:sections="sections"
@topic:open="topic = $event"
/>
</div>

<help-topic
v-else-if="topic !== null"
:topic="topic"
@topic:close="topic = null"
/>
<help-topic
v-if="topic !== null"
:topic="topic"
@topic:close="topic = null"
/>
</template>
</aside>
</transition>
</div>
Expand Down

0 comments on commit 54b00cb

Please sign in to comment.