mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-07-22 13:33:39 -04:00
fix: change device.link to string
This commit is contained in:
@@ -92,8 +92,8 @@
|
||||
|
||||
<div class="card bg-base-200 shadow-sm" transition:scale={{ delay: 0, duration: 200 }}>
|
||||
<div class="card-body p-6">
|
||||
{#if device.link.toString() !== ''}
|
||||
<a href={device.link.toString()} target="_blank">
|
||||
{#if device.link !== ''}
|
||||
<a href={device.link} target="_blank">
|
||||
<h1 class="link card-title">{device.name}</h1>
|
||||
</a>
|
||||
{:else}
|
||||
|
||||
@@ -8,7 +8,7 @@ export type Device = RecordModel & {
|
||||
description: string;
|
||||
status: 'pending' | 'online' | 'offline' | '';
|
||||
ports: string[];
|
||||
link: URL;
|
||||
link: string;
|
||||
link_open: '' | 'same_tab' | 'new_tab';
|
||||
ping_cmd: string;
|
||||
wake_cron: string;
|
||||
|
||||
Reference in New Issue
Block a user