Skip to content

Commit

Permalink
Merge pull request #59 from ndrez-outl1ne/bugfix/insertBefore
Browse files Browse the repository at this point in the history
Replace v-if causing exception with v-show
  • Loading branch information
Tarpsvo authored Jul 12, 2023
2 parents 171e17c + bc57824 commit f09ff7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/entry.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions resources/js/modals/ChooseMediaModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="o1-leading-tight text-primary-500 o1-font-bold o1-text-md o1-mb-2">
{{ __('novaMediaHub.selectedMediaTitle') + (selectedCount > 1 ? ` (${selectedCount})` : '') }}
</div>
<div class="o1-flex overflow-x-auto o1-pt-1 o1-px-1" v-if="!!selectedCount">
<div class="o1-flex overflow-x-auto o1-pt-1 o1-px-1" v-show="!!selectedCount">
<Draggable v-model="selectedMediaItems" item-key="id" class="o1-flex o1-flex-shrink-0">
<template #item="{ element: mediaItem }">
<MediaItem
Expand All @@ -35,7 +35,7 @@
</template>
</Draggable>
</div>
<div v-else-if="!selectedCount" class="o1-text-slate-400 o1-mb-4">
<div v-show="!selectedCount" class="o1-text-slate-400 o1-mb-4">
{{ __('novaMediaHub.noMediaSelectedText') }}
</div>
</div>
Expand All @@ -50,7 +50,7 @@
</SelectControl>
</ModalFilterItem>

<LoadingButton v-if="someMediaItemsNotInCurrentCollection"
<LoadingButton v-show="someMediaItemsNotInCurrentCollection"
@click.prevent="moveToCollection">{{ __('novaMediaHub.moveToCollectionTitle') }}</LoadingButton>

<!-- Search -->
Expand Down

0 comments on commit f09ff7f

Please sign in to comment.