Skip to content

Commit

Permalink
[4.x] Fix "Read Only" text for section fields (statamic#9315)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Jan 17, 2024
1 parent 4324e7b commit 686a7ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/js/components/publish/Field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/>
<i class="required mr-1" v-if="config.required">*</i>
<avatar v-if="isLocked" :user="lockingUser" class="w-4 rounded-full -mt-px ml-2 mr-2" v-tooltip="lockingUser.name" />
<span v-if="isReadOnly && !isTab" class="text-gray-500 font-normal text-2xs mr-1">
<span v-if="isReadOnly && !isTab && !isSection" class="text-gray-500 font-normal text-2xs mr-1">
{{ isLocked ? __('Locked') : __('Read Only') }}
</span>
<svg-icon name="translate" class="h-4 mr-1 w-4 text-gray-600" v-if="isLocalizable && !isTab" v-tooltip.top="__('Localizable field')" />
Expand Down Expand Up @@ -148,6 +148,10 @@ export default {
return this.config.type === 'tab';
},
isSection() {
return this.config.type === 'section';
},
classes() {
return [
'form-group publish-field',
Expand Down

0 comments on commit 686a7ee

Please sign in to comment.