Skip to content

Commit

Permalink
The "Mode" select dropdown should also be read-only if the code field is
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Mar 20, 2024
1 parent 8f9b66c commit 4cf5f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/fieldtypes/CodeFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="code-fieldtype-container" :class="[themeClass, {'code-fullscreen': fullScreenMode }]">
<div class="code-fieldtype-toolbar">
<div>
<select-input v-if="config.mode_selectable" :options="modes" v-model="mode" class="text-xs leading-none" />
<select-input v-if="config.mode_selectable" :options="modes" v-model="mode" :is-read-only="isReadOnly" class="text-xs leading-none" />
<div v-else v-text="modeLabel" class="text-xs font-mono text-gray-700"></div>
</div>
<button @click="fullScreenMode = !fullScreenMode" class="btn-icon h-8 leading-none flex items-center justify-center text-gray-800" v-tooltip="__('Toggle Fullscreen Mode')">
Expand Down

0 comments on commit 4cf5f02

Please sign in to comment.