Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Fix errors in ShowImageModal
* Prop `dark` for NcModal has to be a boolean
* Custom validator for prop `images` should succeed if all images have
  basename and source set, not the other way round.

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Mar 23, 2023
commit 01a92fef36a1580f967b61b8241222366effa963
4 changes: 2 additions & 2 deletions src/components/ImageView/ShowImageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:has-next="true"
:has-previous="true"
:close-button-contained="false"
dark="true"
:dark="true"
@next="showNextImage"
@previous="showPreviousImage"
@close="$emit('close')">
Expand All @@ -33,7 +33,7 @@ export default {
validator(imagesList) {
return (imagesList.length === 0)
? true
: imagesList.findIndex(({ basename, source }) => !(basename && source)) !== -1
: imagesList.every(image => image.basename && image.source)
},
},
startIndex: {
Expand Down