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 Users extends BulkAction
try {
$this->dispatch(new UpdateUser($user, $request->merge(['enabled' => 0])));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}
@@ -50,7 +50,7 @@ class Users extends BulkAction
try {
$this->dispatch(new DeleteUser($user));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}

View File

@@ -37,7 +37,7 @@ class Accounts extends BulkAction
try {
$this->dispatch(new UpdateAccount($account, $request->merge(['enabled' => 0])));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}
@@ -50,7 +50,7 @@ class Accounts extends BulkAction
try {
$this->dispatch(new DeleteAccount($account));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}

View File

@@ -32,7 +32,7 @@ class Transfers extends BulkAction
try {
$this->dispatch(new DeleteTransfer($transfer));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}

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();
}
}
}

View File

@@ -37,7 +37,7 @@ class Dashboards extends BulkAction
try {
$this->dispatch(new UpdateDashboard($dashboard, $request->merge(['enabled' => 1])));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}
@@ -50,7 +50,7 @@ class Dashboards extends BulkAction
try {
$this->dispatch(new UpdateDashboard($dashboard, $request->merge(['enabled' => 0])));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}
@@ -63,7 +63,7 @@ class Dashboards extends BulkAction
try {
$this->dispatch(new DeleteDashboard($dashboard));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}

View File

@@ -46,7 +46,7 @@ class Items extends BulkAction
try {
$this->dispatch(new DeleteItem($item));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}

View File

@@ -95,7 +95,7 @@ class Bills extends BulkAction
try {
$this->dispatch(new DeleteDocument($bill));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}

View File

@@ -99,7 +99,7 @@ class Invoices extends BulkAction
try {
$this->dispatch(new DeleteDocument($invoice));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}

View File

@@ -37,7 +37,7 @@ class Categories extends BulkAction
try {
$this->dispatch(new UpdateCategory($category, $request->merge(['enabled' => 0])));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}
@@ -50,7 +50,7 @@ class Categories extends BulkAction
try {
$this->dispatch(new DeleteCategory($category));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}

View File

@@ -37,7 +37,7 @@ class Currencies extends BulkAction
try {
$this->dispatch(new UpdateCurrency($currency, $request->merge(['enabled' => 0])));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}
@@ -50,7 +50,7 @@ class Currencies extends BulkAction
try {
$this->dispatch(new DeleteCurrency($currency));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}

View File

@@ -37,7 +37,7 @@ class Taxes extends BulkAction
try {
$this->dispatch(new UpdateTax($tax, $request->merge(['enabled' => 0])));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}
@@ -50,7 +50,7 @@ class Taxes extends BulkAction
try {
$this->dispatch(new DeleteTax($tax));
} catch (\Exception $e) {
flash($e->getMessage())->error();
flash($e->getMessage())->error()->important();
}
}
}