From 85150c8457095e512eb473b35519c3715ab3b110 Mon Sep 17 00:00:00 2001 From: Kevin Ullyott Date: Thu, 2 May 2024 14:14:41 -0400 Subject: [PATCH] Fix embed code display Signed-off-by: Kevin Ullyott --- .../portal/src/Filament/Pages/ManagePortalSettings.php | 5 +++-- .../Pages/EditServiceRequestForm.php | 5 +++-- .../Filament/Resources/SurveyResource/Pages/EditSurvey.php | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app-modules/portal/src/Filament/Pages/ManagePortalSettings.php b/app-modules/portal/src/Filament/Pages/ManagePortalSettings.php index 13718af2e..096238980 100644 --- a/app-modules/portal/src/Filament/Pages/ManagePortalSettings.php +++ b/app-modules/portal/src/Filament/Pages/ManagePortalSettings.php @@ -203,13 +203,14 @@ public function form(Form $form): Form ->state(function () { $code = resolve(GeneratePortalEmbedCode::class)->handle(PortalType::KnowledgeManagement); - return <<markdown()->toHtmlString(); }) - ->markdown() ->copyable() ->copyableState(fn () => resolve(GeneratePortalEmbedCode::class)->handle(PortalType::KnowledgeManagement)) ->copyMessage('Copied!') diff --git a/app-modules/service-management/src/Filament/Resources/ServiceRequestFormResource/Pages/EditServiceRequestForm.php b/app-modules/service-management/src/Filament/Resources/ServiceRequestFormResource/Pages/EditServiceRequestForm.php index 581c1ae77..2dbf77f0a 100644 --- a/app-modules/service-management/src/Filament/Resources/ServiceRequestFormResource/Pages/EditServiceRequestForm.php +++ b/app-modules/service-management/src/Filament/Resources/ServiceRequestFormResource/Pages/EditServiceRequestForm.php @@ -74,13 +74,14 @@ protected function getHeaderActions(): array ->state(function (ServiceRequestForm $serviceRequestForm) { $code = resolve(GenerateSubmissibleEmbedCode::class)->handle($serviceRequestForm); - return <<markdown()->toHtmlString(); }) - ->markdown() ->copyable() ->copyableState(fn (ServiceRequestForm $serviceRequestForm) => resolve(GenerateSubmissibleEmbedCode::class)->handle($serviceRequestForm)) ->copyMessage('Copied!') diff --git a/app-modules/survey/src/Filament/Resources/SurveyResource/Pages/EditSurvey.php b/app-modules/survey/src/Filament/Resources/SurveyResource/Pages/EditSurvey.php index a2ac13d30..fff2ebdf4 100644 --- a/app-modules/survey/src/Filament/Resources/SurveyResource/Pages/EditSurvey.php +++ b/app-modules/survey/src/Filament/Resources/SurveyResource/Pages/EditSurvey.php @@ -76,13 +76,14 @@ protected function getHeaderActions(): array ->state(function (Survey $survey) { $code = resolve(GenerateSubmissibleEmbedCode::class)->handle($survey); - return <<markdown()->toHtmlString(); }) - ->markdown() ->copyable() ->copyableState(fn (Survey $survey) => resolve(GenerateSubmissibleEmbedCode::class)->handle($survey)) ->copyMessage('Copied!')