From aaef1f40226e37128e5a02b3e336f3b49420f84e Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Mon, 11 Nov 2024 16:21:52 +0000 Subject: [PATCH] Hide "Localizable" button on non-localizable blueprints Like user, groups, forms, etc. --- resources/js/components/blueprints/Builder.vue | 4 +++- resources/js/components/blueprints/TabContent.vue | 4 ++++ resources/js/components/blueprints/Tabs.vue | 4 ++++ resources/views/forms/blueprints/edit.blade.php | 1 + resources/views/usergroups/blueprints/edit.blade.php | 1 + resources/views/users/blueprints/edit.blade.php | 1 + 6 files changed, 14 insertions(+), 1 deletion(-) diff --git a/resources/js/components/blueprints/Builder.vue b/resources/js/components/blueprints/Builder.vue index fb556c0b1f..314a291858 100644 --- a/resources/js/components/blueprints/Builder.vue +++ b/resources/js/components/blueprints/Builder.vue @@ -43,6 +43,7 @@ :single-tab="!useTabs" :initial-tabs="tabs" :errors="errors.tabs" + :can-define-localizable="canDefineLocalizable" @updated="tabsUpdated" /> @@ -53,10 +54,11 @@