Fix mounting behavior to work correctly when adding to a server

This commit is contained in:
DaneEveritt 2022-05-30 11:33:42 -04:00
parent dbc9846320
commit 4213775b5c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 8 additions and 7 deletions

View file

@ -48,9 +48,9 @@
</td>
<td class="col-sm-1 middle">
<form action="{{ route('admin.servers.view.mounts.toggle', [ 'server' => $server->id, 'mount' => $mount->id ]) }}" method="POST">
<form action="{{ route('admin.servers.view.mounts.store', [ 'server' => $server->id ]) }}" method="POST">
{!! csrf_field() !!}
<input type="hidden" value="{{ $mount->id }}" name="mount_id" />
<button type="submit" class="btn btn-xs btn-success"><i class="fa fa-plus"></i></button>
</form>
</td>
@ -60,7 +60,7 @@
</td>
<td class="col-sm-1 middle">
<form action="{{ route('admin.servers.view.mounts.toggle', [ 'server' => $server->id, 'mount' => $mount->id ]) }}" method="POST">
<form action="{{ route('admin.servers.view.mounts.delete', [ 'server' => $server->id, 'mount' => $mount->id ]) }}" method="POST">
@method('DELETE')
{!! csrf_field() !!}