Skip to content

Commit 6180b85

Browse files
[6.x] Fix localizable toggle on fields (#13548)
1 parent 7f7aaf8 commit 6180b85

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

resources/js/pages/blueprints/Edit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defineProps({
77
action: String,
88
showTitle: Boolean,
99
useTabs: { type: Boolean, default: true },
10-
canDefineLocalizable: Boolean,
10+
canDefineLocalizable: { type: Boolean, default: undefined },
1111
resetRoute: String,
1212
isResettable: Boolean,
1313
isFormBlueprint: Boolean,

src/Http/Controllers/CP/Forms/FormBlueprintController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function edit($form)
4545
'blueprint' => $this->toVueObject($blueprint),
4646
'action' => cp_route('blueprints.forms.update', $form->handle()),
4747
'isFormBlueprint' => true,
48+
'canDefineLocalizable' => false,
4849
'useTabs' => false,
4950
]);
5051
}

src/Http/Controllers/CP/Users/UserGroupBlueprintController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function edit()
4242
return $this->renderEditPage([
4343
'blueprint' => $this->toVueObject($blueprint),
4444
'action' => cp_route('blueprints.user-groups.update'),
45+
'canDefineLocalizable' => false,
4546
]);
4647
}
4748

0 commit comments

Comments
 (0)