Skip to content

Commit

Permalink
fix gallery on edit project page
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 17, 2023
1 parent a799704 commit 0716897
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lang/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@
"project.labels.videos_extra" : "Aici puteti adauga link-uri de pe diverse platforme de streaming (youtube, vimeo, etc.)",

"project.labels.external_links_title": "Titlu link extern",
"project.labels.external_links_url": "URL link extern"
"project.labels.external_links_url": "URL link extern",
"project.labels.change_gallery_label": "Schimbă galeria de imagini"




Expand Down
9 changes: 5 additions & 4 deletions resources/js/Pages/AdminOng/Projects/EditProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,16 +355,17 @@
</div>
</template>
</Field>
<Field :label="$t('main_image')" :errors="formChangeStatus.errors.preview">
<Field :label="$t('photo_gallery')" :errors="formChangeStatus.errors.gallery">
<template #value>
<div class="flex items-center col-span-12 gap-6 text-base font-medium leading-6 text-gray-700">
<img class="object-contain w-32 h-32 shrink-0" v-for="image in originalProject.gallery" :src="image.url" alt="" />

<div class="grid gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
<img class="object-contain w-32 h-32 shrink-0" v-for="image in originalProject.gallery" :src="image.url" alt="" />
</div>
<div>
<EditModal
@action="editField('gallery')"
@cancel="resetField('gallery')"
:text="$t('change_image_label')"
:text="$t('project.labels.change_gallery_label')"
>
<FileGroup v-model="originalProject.gallery" :label="$t('photo_gallery')"/>
</EditModal>
Expand Down

0 comments on commit 0716897

Please sign in to comment.