Notification clear all button text fixed

This commit is contained in:
Cüneyt Şentürk 2021-06-30 09:34:50 +03:00
parent 43e3a0a08a
commit 2c47ccb302
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ use Date;
use App\Abstracts\Http\Controller; use App\Abstracts\Http\Controller;
use App\Traits\Modules as RemoteModules; use App\Traits\Modules as RemoteModules;
use App\Http\Requests\Common\Notification as Request; use App\Http\Requests\Common\Notification as Request;
use Illuminate\Support\Str;
class Notifications extends Controller class Notifications extends Controller
{ {
@ -46,7 +47,7 @@ class Notifications extends Controller
setting()->save(); setting()->save();
$message = trans('messages.success.duplicated', ['type' => trans_choice('general.notificatinos', 1)]); $message = trans('messages.success.clear_all', ['type' => Str::lower(trans_choice('general.notifications', 2))]);
flash($message)->success(); flash($message)->success();

View File

@ -13,6 +13,8 @@ return [
'export_queued' => ':type export of the current page has been scheduled! You will receive an email when it is ready to download.', 'export_queued' => ':type export of the current page has been scheduled! You will receive an email when it is ready to download.',
'enabled' => ':type enabled!', 'enabled' => ':type enabled!',
'disabled' => ':type disabled!', 'disabled' => ':type disabled!',
'clear_all' => 'Great! You\'ve cleared all of your :type.',
], ],
'error' => [ 'error' => [