Skip to content

Commit

Permalink
UX fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Dec 6, 2024
1 parent a82994b commit 4da777f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Admin/CommandQueueController.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function destroy(Request $request)

$commandQueue->delete();

return redirect()->route('admin.command-queue.index')
return redirect()->back()
->with(['toast' => ['type' => 'success', 'title' => __('Deleted!')]]);
}

Expand Down Expand Up @@ -141,7 +141,7 @@ public function retry(Request $request)
RunCommandQueueJob::dispatch($commandQueue);
}

return redirect()->route('admin.command-queue.index')
return redirect()->back()
->with(['toast' => ['type' => 'success', 'title' => __('Retried!'), 'body' => __('Command has been queued for retrying! Refresh the page after few seconds to check the status.')]]);
}
}

0 comments on commit 4da777f

Please sign in to comment.