Skip to content

Commit

Permalink
#50
Browse files Browse the repository at this point in the history
- removed custom properties icon from detail view
  • Loading branch information
ebess committed Apr 18, 2019
1 parent 6640008 commit 969c311
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion resources/js/components/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<component :is="singleComponent" v-for="(image, index) in images" class="mb-3 p-3 mr-3"
:key="index" :image="image" :field="field" :removable="editable" @remove="remove(index)"
:is-custom-properties-editable="customPropertiesFields.length > 0"
:is-custom-properties-editable="customProperties && customPropertiesFields.length > 0"
@editCustomProperties="customPropertiesImageIndex = index"
/>

Expand Down Expand Up @@ -51,6 +51,10 @@
value: Array,
editable: Boolean,
multiple: Boolean,
customProperties: {
type: Boolean,
default: false,
},
},
data() {
return {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/fields/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<component :is="field.fullSize ? 'full-width-field' : 'default-field'" :field="field">
<template slot="field">
<div :class="{'px-8 pt-6': field.fullSize}">
<gallery slot="value" v-model="value" editable :field="field" :multiple="field.multiple"
<gallery slot="value" v-model="value" editable custom-properties :field="field" :multiple="field.multiple"
:has-error="hasError" :first-error="firstError" v-if="hasSetInitialValue"/>
</div>
</template>
Expand Down

0 comments on commit 969c311

Please sign in to comment.