add error notification important feature

This commit is contained in:
Cüneyt Şentürk
2021-02-12 19:26:38 +03:00
parent bdc17242a6
commit 9665d8d695
43 changed files with 102 additions and 102 deletions

View File

@ -37,7 +37,7 @@ class Companies extends BulkAction
try {
$this->dispatch(new UpdateCompany($company, $request->merge(['enabled' => 1]), session('company_id')));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}
@ -50,7 +50,7 @@ class Companies extends BulkAction
try {
$this->dispatch(new UpdateCompany($company, $request->merge(['enabled' => 0]), session('company_id')));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}
@ -63,7 +63,7 @@ class Companies extends BulkAction
try {
$this->dispatch(new DeleteCompany($company, session('company_id')));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}