Skip to content

Commit

Permalink
feat: explain device limit
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker committed Oct 3, 2024
1 parent 4414e30 commit 3e0f214
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"edit-name-title": "Namen Bearbeiten",
"edit-hostname-title": "Ziel Hostnamen Bearbeiten",
"edit-tags-title": "Tags Bearbeiten",
"new-tag-placeholder": "Neuer Tag..."
"new-tag-placeholder": "Neuer Tag...",
"limit-explain": "Sie können bis zu {deviceLimit} Geräte verwalten.\nFür größere Projekte bieten wir auf thymis.io/ skalierbare Pläne an, die Ihren Anforderungen entsprechen"
},
"create-device": {
"title": "Neues Gerät Erstellen",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"edit-name-title": "Edit Name",
"edit-hostname-title": "Edit target hostname",
"edit-tags-title": "Edit Tags",
"new-tag-placeholder": "New Tag..."
"new-tag-placeholder": "New Tag...",
"limit-explain": "You can manage up to {deviceLimit} devices.\nFor larger projects, we offer scalable plans to meet your needs at thymis.io/"
},
"create-device": {
"title": "Create a new device",
Expand Down
12 changes: 11 additions & 1 deletion frontend/src/routes/(authenticated)/devices/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
TableBodyCell,
TableBodyRow,
TableHead,
TableHeadCell
TableHeadCell,
Tooltip
} from 'flowbite-svelte';
import TagIcon from 'lucide-svelte/icons/tag';
import GripVertical from 'lucide-svelte/icons/grip-vertical';
Expand Down Expand Up @@ -110,6 +111,15 @@
}
})}
</Button>
{#if devices.length >= 5}
<Tooltip class="z-50 whitespace-pre">
{$t('devices.limit-explain', {
values: {
deviceLimit: 5
}
})}
</Tooltip>
{/if}
</div>
<DeployActions />
</div>
Expand Down

0 comments on commit 3e0f214

Please sign in to comment.