Skip to content

Commit

Permalink
Add fieldNote foro translated fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
haringsrob authored and ifox committed Feb 15, 2022
1 parent 5b3fbb6 commit 7d15ee6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/js/components/MediaFieldTranslated.vue
Expand Up @@ -4,6 +4,7 @@
:locale="locale"
@localize="updateLocale"
:size="size"
:note="note"
:name="name">
<a17-slideshow v-if="max > 1 || max === 0"
:name="name"
Expand Down
4 changes: 4 additions & 0 deletions frontend/js/mixins/mediaField.js
Expand Up @@ -20,6 +20,10 @@ export default {
type: Number,
default: 0
},
note: {
type: String,
default: ''
},
// current crop context put in store. eg: slideshow, cover...
cropContext: {
type: String,
Expand Down
1 change: 1 addition & 0 deletions views/partials/form/_medias.blade.php
Expand Up @@ -25,6 +25,7 @@
max: {{ $max }},
widthMin: {{ $widthMin }},
heightMin: {{ $heightMin }},
note: '{{ $fieldNote }}',
@if ($extraMetadatas) extraMetadatas: {{ json_encode($extraMetadatas) }}, @endif
@if ($altTextMaxLength) :altTextMaxLength: {{ $altTextMaxLength }}, @endif
@if ($captionMaxLength) :captionMaxLength: {{ $captionMaxLength }}, @endif
Expand Down

0 comments on commit 7d15ee6

Please sign in to comment.