Skip to content

Commit

Permalink
fix: remove legacy div
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker committed Oct 3, 2024
1 parent 3e0f214 commit b6fd7a8
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions frontend/src/routes/(authenticated)/devices/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,30 +97,28 @@
</script>

<div class="flex justify-between mb-4">
<div class="flex gap-4 flex-col items-start xl:flex-row xl:items-center">
<Button
color="alternative"
class="whitespace-nowrap"
on:click={() => (deviceModalOpen = true)}
disabled={devices.length >= 5}
>
{$t('devices.create-new', {
<Button
color="alternative"
class="whitespace-nowrap"
on:click={() => (deviceModalOpen = true)}
disabled={devices.length >= 5}
>
{$t('devices.create-new', {
values: {
deviceCount: devices.length,
deviceLimit: 5
}
})}
</Button>
{#if devices.length >= 5}
<Tooltip class="z-50 whitespace-pre">
{$t('devices.limit-explain', {
values: {
deviceCount: devices.length,
deviceLimit: 5
}
})}
</Button>
{#if devices.length >= 5}
<Tooltip class="z-50 whitespace-pre">
{$t('devices.limit-explain', {
values: {
deviceLimit: 5
}
})}
</Tooltip>
{/if}
</div>
</Tooltip>
{/if}
<DeployActions />
</div>
<CreateDeviceModal bind:open={deviceModalOpen} />
Expand Down

0 comments on commit b6fd7a8

Please sign in to comment.