mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Fix FLEXIAPI-313 Fix the admin device deletion link, recover the missing...
This commit is contained in:
parent
f130380809
commit
e6d2b8ee9a
2 changed files with 14 additions and 1 deletions
|
|
@ -25,6 +25,19 @@ use App\Libraries\FlexisipRedisConnector;
|
|||
|
||||
class DeviceController extends Controller
|
||||
{
|
||||
public function index(Request $request)
|
||||
{
|
||||
$connector = new FlexisipRedisConnector;
|
||||
|
||||
return view(
|
||||
'account.device.index',
|
||||
[
|
||||
'account' => $request->user(),
|
||||
'devices' => $connector->getDevices($request->user()->identifier)
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
public function delete(Request $request, string $uuid)
|
||||
{
|
||||
$connector = new FlexisipRedisConnector;
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@
|
|||
<tr>
|
||||
<td class="line">{{ $device->user_agent }}</td>
|
||||
<td class="actions">
|
||||
<a type="button" class="btn small tertiary" href="{{ route('account.device.delete', [$device->uuid]) }}">
|
||||
<a type="button" class="btn small tertiary" href="{{ route('admin.account.device.delete', [$device->uuid]) }}">
|
||||
<i class="ph">trash</i>
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue