From 4b3676b61f21cd3fccfe0e1a5cc011ba6ed69b90 Mon Sep 17 00:00:00 2001 From: Ronni Skansing Date: Wed, 15 Oct 2025 22:17:08 +0200 Subject: [PATCH] remaining scopes Signed-off-by: Ronni Skansing --- frontend/src/routes/ip-filter/+page.svelte | 9 +++++++-- frontend/src/routes/proxy/+page.svelte | 10 +++++++--- frontend/src/routes/recipient/group/+page.svelte | 9 +++++++-- frontend/src/routes/smtp-configuration/+page.svelte | 9 +++++++-- frontend/src/routes/webhook/+page.svelte | 12 +++++++++--- 5 files changed, 37 insertions(+), 12 deletions(-) diff --git a/frontend/src/routes/ip-filter/+page.svelte b/frontend/src/routes/ip-filter/+page.svelte index bdbdb7a..384afcb 100644 --- a/frontend/src/routes/ip-filter/+page.svelte +++ b/frontend/src/routes/ip-filter/+page.svelte @@ -33,6 +33,7 @@ import TableDropDownEllipsis from '$lib/components/table/TableDropDownEllipsis.svelte'; import DeleteAlert from '$lib/components/modal/DeleteAlert.svelte'; import SelectSquare from '$lib/components/SelectSquare.svelte'; + import TableCellScope from '$lib/components/table/TableCellScope.svelte'; // services const appStateService = AppStateService.instance; @@ -324,9 +325,10 @@ + {#if contextCompanyID} + + {/if} diff --git a/frontend/src/routes/proxy/+page.svelte b/frontend/src/routes/proxy/+page.svelte index 5af506a..9cb3066 100644 --- a/frontend/src/routes/proxy/+page.svelte +++ b/frontend/src/routes/proxy/+page.svelte @@ -31,6 +31,7 @@ import DeleteAlert from '$lib/components/modal/DeleteAlert.svelte'; import SimpleCodeEditor from '$lib/components/editor/SimpleCodeEditor.svelte'; import AutoRefresh from '$lib/components/AutoRefresh.svelte'; + import TableCellScope from '$lib/components/table/TableCellScope.svelte'; // services const appStateService = AppStateService.instance; @@ -332,9 +333,10 @@ portal.example.com:
{proxy.startURL} - + {#if contextCompanyID} + + {/if} diff --git a/frontend/src/routes/recipient/group/+page.svelte b/frontend/src/routes/recipient/group/+page.svelte index 5908eb2..0bafda1 100644 --- a/frontend/src/routes/recipient/group/+page.svelte +++ b/frontend/src/routes/recipient/group/+page.svelte @@ -28,6 +28,7 @@ import TableDropDownEllipsis from '$lib/components/table/TableDropDownEllipsis.svelte'; import DeleteAlert from '$lib/components/modal/DeleteAlert.svelte'; import TableDropDownButton from '$lib/components/table/TableDropDownButton.svelte'; + import TableCellScope from '$lib/components/table/TableCellScope.svelte'; // services const appStateService = AppStateService.instance; @@ -226,9 +227,10 @@
{group.recipientCount} + {#if contextCompanyID} + + {/if} diff --git a/frontend/src/routes/smtp-configuration/+page.svelte b/frontend/src/routes/smtp-configuration/+page.svelte index 409fe56..b36adfc 100644 --- a/frontend/src/routes/smtp-configuration/+page.svelte +++ b/frontend/src/routes/smtp-configuration/+page.svelte @@ -32,6 +32,7 @@ import TableDropDownEllipsis from '$lib/components/table/TableDropDownEllipsis.svelte'; import DeleteAlert from '$lib/components/modal/DeleteAlert.svelte'; import SelectSquare from '$lib/components/SelectSquare.svelte'; + import TableCellScope from '$lib/components/table/TableCellScope.svelte'; // services const appStateService = AppStateService.instance; @@ -424,9 +425,10 @@ { column: 'Name', size: 'large' }, { column: 'Host', size: 'small' }, { column: 'Port', size: 'small' }, - { column: 'Username', size: 'small' } + { column: 'Username', size: 'small' }, + ...(contextCompanyID ? [{ column: 'Scope', size: 'small' }] : []) ]} - sortable={['Name', 'Host', 'Port', 'Username']} + sortable={['Name', 'Host', 'Port', 'Username', ...(contextCompanyID ? ['scope'] : [])]} hasData={!!configurations.length} plural="SMTP configurations" pagination={tableURLParams} @@ -449,6 +451,9 @@ + {#if contextCompanyID} + + {/if} diff --git a/frontend/src/routes/webhook/+page.svelte b/frontend/src/routes/webhook/+page.svelte index 74f3d68..396fe45 100644 --- a/frontend/src/routes/webhook/+page.svelte +++ b/frontend/src/routes/webhook/+page.svelte @@ -28,6 +28,7 @@ import TableCopyButton from '$lib/components/table/TableCopyButton.svelte'; import TableDropDownEllipsis from '$lib/components/table/TableDropDownEllipsis.svelte'; import DeleteAlert from '$lib/components/modal/DeleteAlert.svelte'; + import TableCellScope from '$lib/components/table/TableCellScope.svelte'; // services const appStateService = AppStateService.instance; @@ -275,8 +276,11 @@ Webhooks New webhook
- + {#if contextCompanyID} + + {/if}