Fixed translation issue in catalog rule delete notification
This commit is contained in:
parent
6a24ed723e
commit
2efffafab1
|
|
@ -407,11 +407,11 @@ class CatalogRuleController extends Controller
|
|||
$catalogRule = $this->catalogRule->findOrFail($id);
|
||||
|
||||
if ($catalogRule->delete()) {
|
||||
session()->flash('success', trans('admin::app.promotion.delete-success'));
|
||||
session()->flash('success', trans('admin::app.promotion.status.delete-success'));
|
||||
|
||||
return response()->json(['message' => true], 200);
|
||||
} else {
|
||||
session()->flash('success', trans('admin::app.promotion.delete-failed'));
|
||||
session()->flash('error', trans('admin::app.promotion.status.delete-failed'));
|
||||
|
||||
return response()->json(['message' => false], 400);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue