add error notification important feature
This commit is contained in:
		@@ -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();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user