refac
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
<Tooltip className="w-full relative" content={''} placement="top-start">
|
<Tooltip className="w-full relative" content={''} placement="top-start">
|
||||||
<div class="flex w-full">
|
<div class="flex w-full">
|
||||||
<div
|
<div
|
||||||
class="flex-1 relative flex gap-1.5 items-center {!connection.enabled ? 'opacity-50' : ''}"
|
class="flex-1 relative flex gap-1.5 items-center {!connection?.enabled ? 'opacity-50' : ''}"
|
||||||
>
|
>
|
||||||
<Tooltip content={$i18n.t('Terminal')}>
|
<Tooltip content={$i18n.t('Terminal')}>
|
||||||
<Cloud className="size-4" strokeWidth="1.5" />
|
<Cloud className="size-4" strokeWidth="1.5" />
|
||||||
@@ -70,10 +70,10 @@
|
|||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
<Tooltip content={connection.enabled ? $i18n.t('Enabled') : $i18n.t('Disabled')}>
|
<Tooltip content={connection?.enabled ? $i18n.t('Enabled') : $i18n.t('Disabled')}>
|
||||||
<Switch
|
<Switch
|
||||||
state={connection.enabled}
|
state={connection?.enabled}
|
||||||
on:change={() => (connection.enabled ? onDisable() : onEnable())}
|
on:change={() => (connection?.enabled ? onDisable() : onEnable())}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user