From 487cf555b9809d603aaceeb43af25650e521aedc Mon Sep 17 00:00:00 2001 From: = Date: Sat, 13 Mar 2021 16:56:52 +1100 Subject: [PATCH] Fix for displaying logo --- app/Utils/Traits/Uploadable.php | 2 +- resources/js/setup/setup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Utils/Traits/Uploadable.php b/app/Utils/Traits/Uploadable.php index 4477807310..bc0dc0cf98 100644 --- a/app/Utils/Traits/Uploadable.php +++ b/app/Utils/Traits/Uploadable.php @@ -33,7 +33,7 @@ trait Uploadable if ($file) { $path = UploadAvatar::dispatchNow($file, $company->company_key); - $path = str_replace(config("ninja.app_url"), "", $path); + //$path = str_replace(config("ninja.app_url"), "", $path); info("the path {$path}"); diff --git a/resources/js/setup/setup.js b/resources/js/setup/setup.js index bc9af4555a..7d0fba6738 100644 --- a/resources/js/setup/setup.js +++ b/resources/js/setup/setup.js @@ -105,7 +105,7 @@ class Setup { ); } catch (error) { this.handleSuccess(this.checkPdfAlert, 'database-wrapper'); - this.checkPdfAlert.textContent = `Success! You can preview test PDF here: ${response.data.url}`; + this.checkPdfAlert.textContent = `Success! PDF was generated succesfully.`; } }) .catch((error) => {