Skip to content

Commit

Permalink
dumili,dumili-api: Fix display when selecting a story from the story …
Browse files Browse the repository at this point in the history
…search dropdown, remove migration
  • Loading branch information
bperel committed Jan 25, 2025
1 parent 01cb407 commit 5be1c65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 164 deletions.
161 changes: 0 additions & 161 deletions apps/dumili/api/prisma/migrations/20241014191224_init/migration.sql

This file was deleted.

11 changes: 8 additions & 3 deletions apps/dumili/src/components/suggestions/StorySuggestionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<span
v-if="
entry.acceptedStoryKind &&
storyDetails[suggestion.storycode] &&
storyDetails[suggestion.storycode]?.originalstoryversioncode &&
entry.acceptedStoryKind?.kind !=
storyversionDetails[storyDetails[suggestion.storycode].originalstoryversioncode!].kind
"
Expand Down Expand Up @@ -107,7 +107,12 @@
<template #unknown-text>{{ $t("Contenu inconnu") }}</template>
<template #customize-text>{{ $t("Rechercher...") }}</template>
<template #customize-form>
<StorySearch @story-selected="acceptStory($event.storycode)" />
<StorySearch
@story-selected="
acceptStory($event.storycode);
showEntrySelect = false;
"
/>
</template>
</suggestion-list>
</template>
Expand Down Expand Up @@ -176,7 +181,7 @@ const acceptStory = async (storycode: storySuggestion["storycode"] | null) => {
watch(
() => entry.value.acceptedStory?.storycode || null,
async (storycode) => {
(storycode) => {
acceptStory(storycode);
},
);
Expand Down

0 comments on commit 5be1c65

Please sign in to comment.