Skip to content

Commit

Permalink
fix the edit ui error
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed May 7, 2024
1 parent aaf0f6a commit edf9c5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/js/Pages/Collection/Components/CollectionHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,15 @@ const props = defineProps({
type: Object
}
});
const emit = defineEmits(['showEditCollectionSlideOut', 'toggleReindexCollection']);
const showEditCollectionSlideOut = () => {
emit('showEditCollectionSlideOut');
};
const toggleReindexCollection = () => {
emit('toggleReindexCollection');
};
</script>
2 changes: 2 additions & 0 deletions resources/js/Pages/Collection/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ const reset = () => {
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg">
<CollectionHeader
@toggleReindexCollection="toggleReindexCollection"
@showEditCollectionSlideOut="showEditCollectionSlideOut"
:chat="chat?.data"
:collection="collection.data"></CollectionHeader>

Expand Down

0 comments on commit edf9c5d

Please sign in to comment.