From 2a1d61ff844382b22e4576281051da345ecce9ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Tue, 2 Aug 2022 16:19:32 +0300 Subject: [PATCH] fixed import/export notification --- app/Notifications/Common/ExportFailed.php | 4 +--- app/Notifications/Common/ImportFailed.php | 4 +--- resources/lang/en-GB/notifications.php | 9 ++++++++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/Notifications/Common/ExportFailed.php b/app/Notifications/Common/ExportFailed.php index 13a9563e5..36ea8c25a 100644 --- a/app/Notifications/Common/ExportFailed.php +++ b/app/Notifications/Common/ExportFailed.php @@ -65,9 +65,7 @@ class ExportFailed extends Notification implements ShouldQueue { return [ 'title' => trans('notifications.menu.export_failed.title'), - 'description' => trans('notifications.menu.export_failed.description', [ - 'issues' => $this->message, - ]), + 'description' => trans('notifications.menu.export_failed.description'), 'message' => $this->message, ]; } diff --git a/app/Notifications/Common/ImportFailed.php b/app/Notifications/Common/ImportFailed.php index 1b51c8499..89939f757 100644 --- a/app/Notifications/Common/ImportFailed.php +++ b/app/Notifications/Common/ImportFailed.php @@ -70,9 +70,7 @@ class ImportFailed extends Notification implements ShouldQueue { return [ 'title' => trans('notifications.menu.import_failed.title'), - 'description' => trans('notifications.menu.import_failed.description', [ - 'issues' => $this->errors, - ]), + 'description' => trans('notifications.menu.import_failed.description'), 'errors' => $this->errors, ]; } diff --git a/resources/lang/en-GB/notifications.php b/resources/lang/en-GB/notifications.php index 896c6378d..9cd046815 100644 --- a/resources/lang/en-GB/notifications.php +++ b/resources/lang/en-GB/notifications.php @@ -75,7 +75,7 @@ return [ 'export_failed' => [ 'title' => 'Export failed', - 'description' => 'Not able to create the export file due to the following issue: :issues', + 'description' => 'Not able to create the export file due to several issues. Check out your email for the details.', ], @@ -86,6 +86,13 @@ return [ ], + 'import_failed' => [ + + 'subject' => 'Import failed', + 'description' => 'Not able to import the file due to several issues. Check out your email for the details.', + + ], + 'new_apps' => [ 'title' => 'New App',