Skip to content

Commit

Permalink
feat: avoid showing an empty dropdown when no slice of life defined (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss authored Mar 21, 2023
1 parent 10175cd commit c4f2fec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const reset = () => {
<span>Slices of life</span>

<span
v-if="!editSlicesModalShown"
v-if="!editSlicesModalShown && localSlices.length > 0"
class="relative cursor-pointer text-xs text-gray-600 dark:text-gray-400"
@click="showSliceModal">
{{ $t('app.edit') }}
Expand All @@ -82,7 +82,7 @@ const reset = () => {

<!-- edit slice of life -->
<div
v-if="editSlicesModalShown"
v-if="editSlicesModalShown && localSlices.length > 0"
class="bg-form mb-6 rounded-lg border border-gray-200 dark:border-gray-700 dark:bg-gray-900">
<form @submit.prevent="update()">
<div class="border-b border-gray-200 p-2 dark:border-gray-700">
Expand Down

0 comments on commit c4f2fec

Please sign in to comment.