Skip to content

Commit

Permalink
Alerts changed on RclMessageController
Browse files Browse the repository at this point in the history
  • Loading branch information
Liesel Downes committed Apr 24, 2023
1 parent 1f8201c commit aa29c00
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Http/Controllers/RclMessagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function create()
public function store(RclMessageRequest $request)
{
if (RclMessage::whereVatsimAccountId($request->user()->id)->whereClxMessageId(null)->exists()) {
toastr()->error('You already have a pending oceanic clearance request. If it has been waiting for more than 10 minutes, let the controller know.');
flashAlert(type: 'warning', title: 'You can\'t submit another request yet.', message: 'You already have a pending oceanic clearance request. If it has been waiting for more than 10 minutes, let the controller know via vPilot/xPilot/Swift private message.', toast: false, timer: false);

return redirect()->route('pilots.rcl.index');
}
Expand All @@ -57,8 +57,6 @@ public function store(RclMessageRequest $request)
$rclMessage->atc_rejected = false;
$rclMessage->save();

toastr()->info('Your messaged has been received. Accept notifications from this site and we can let you know when it\'s been replied to!');

return redirect()->route('pilots.message-history');
}
}

0 comments on commit aa29c00

Please sign in to comment.