mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat(#18): added support for device mirroring
This commit is contained in:
parent
929e7fc4c0
commit
56210405ff
8 changed files with 186 additions and 37 deletions
|
|
@ -44,7 +44,20 @@ new class extends Component {
|
|||
|
||||
<h1 class="text-xl font-medium dark:text-zinc-200">{{ $device->name }}</h1>
|
||||
<p class="text-sm dark:text-zinc-400">{{$device->mac_address}}</p>
|
||||
@if($current_image_path)
|
||||
@if($device->mirror_device_id)
|
||||
<flux:separator class="mt-2 mb-4"/>
|
||||
<flux:callout variant="info">
|
||||
<div class="flex items-center gap-2">
|
||||
<flux:icon name="link" class="h-5 w-5"/>
|
||||
<div>
|
||||
This device is mirrored from
|
||||
<a href="{{ route('devices.configure', $device->mirrorDevice) }}" class="font-medium hover:underline">
|
||||
{{ $device->mirrorDevice->name }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</flux:callout>
|
||||
@elseif($current_image_path)
|
||||
<flux:separator class="mt-2 mb-4"/>
|
||||
<img src="{{ asset($current_image_path) }}" alt="Current Image"/>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue