We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 762137c commit 0ebfc9cCopy full SHA for 0ebfc9c
resources/js/components/fieldtypes/SeoProFieldtype.vue
@@ -12,7 +12,7 @@ const { originValues } = injectPublishContext();
12
13
const readOnly = computed(() => {
14
// When localizing an entry AND "localizable" is disabled, make the fields read-only.
15
- if (originValues !== null && !props.config.localizable) {
+ if (originValues?.length > 0 && !props.config.localizable) {
16
return true;
17
}
18
@@ -21,7 +21,7 @@ const readOnly = computed(() => {
21
</script>
22
23
<template>
24
- <div>
+ <div :class="{ 'opacity-50': readOnly }">
25
<FieldsProvider
26
:fields="meta.fields"
27
:read-only="readOnly"
0 commit comments