Skip to content

Commit

Permalink
Hide add date button when it's read only. Closes #3025
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Dec 23, 2020
1 parent 272d132 commit a39386c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/fieldtypes/DateFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<element-container @resized="containerWidth = $event.width">
<div class="datetime">

<button type="button" class="btn flex mb-1 md:mb-0 items-center pl-1.5" v-if="config.inline === false && !hasDate" @click="addDate" tabindex="0">
<button type="button" class="btn flex mb-1 md:mb-0 items-center pl-1.5" v-if="!isReadOnly && config.inline === false && !hasDate" @click="addDate" tabindex="0">
<svg-icon name="calendar" class="w-4 h-4 mr-1"></svg-icon>
{{ __('Add Date') }}
</button>
Expand Down

0 comments on commit a39386c

Please sign in to comment.