From bb21b4f8ced5a23f805c1d1d96793db0ec41556e Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Thu, 12 Dec 2024 11:15:48 -0500 Subject: [PATCH] Move bard source button into field action dropdown --- .../js/components/fieldtypes/bard/BardFieldtype.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/js/components/fieldtypes/bard/BardFieldtype.vue b/resources/js/components/fieldtypes/bard/BardFieldtype.vue index 98585b74f1..2e7c1b96dc 100644 --- a/resources/js/components/fieldtypes/bard/BardFieldtype.vue +++ b/resources/js/components/fieldtypes/bard/BardFieldtype.vue @@ -31,9 +31,6 @@ :config="config" :bard="_self" :editor="editor" /> - @@ -49,9 +46,6 @@ :config="config" :bard="_self" :editor="editor" /> - @@ -370,6 +364,12 @@ export default { visibleWhenReadOnly: true, visible: this.config.fullscreen, }, + { + title: __('Show HTML Source'), + run: () => this.showSource = !this.showSource, + visibleWhenReadOnly: true, + visible: this.allowSource, + }, ]; },