Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

feat: avoid showing an empty dropdown when no slice of life defined #446

Merged
merged 1 commit into from
Mar 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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