updated to be Yes/No

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2025-08-31 14:45:46 +02:00
parent 9337ad64ea
commit ae5da98825
9 changed files with 16 additions and 78 deletions
@@ -1,5 +1,9 @@
<script>
export let value = false;
</script>
<td class="pl-4 w-40 text-center border: hidden;">
<p class="font-regular text-slate-600 flex justify-center">
<slot />
{value ? 'Yes' : 'No'}
</p>
</td>
+1 -7
View File
@@ -292,13 +292,7 @@
</button>
{/if}
</TableCell>
<TableCellCheck>
{#if attachment.embeddedContent}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck value={attachment.embeddedContent} />
<TableCellEmpty />
<TableCellAction>
<TableDropDownEllipsis>
@@ -533,13 +533,7 @@
</a>
{/if}
</TableCell>
<TableCellCheck>
{#if template.isUsable}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck value={template.isUsable} />
<TableCellEmpty />
<TableCellAction>
<TableDropDownEllipsis>
+4 -28
View File
@@ -513,34 +513,10 @@
{domain.name}
</button>
</TableCell>
<TableCellCheck>
{#if domain.hostWebsite}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck>
{#if domain.redirectURL}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck>
{#if domain.managedTLS}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck>
{#if domain.ownManagedTLS}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck value={domain.hostWebsite} />
<TableCellCheck value={!!domain.redirectURL} />
<TableCellCheck value={domain.managedTLS} />
<TableCellCheck value={domain.ownManagedTLS} />
<TableCellEmpty />
<TableCellAction>
<TableDropDownEllipsis>
+1 -7
View File
@@ -400,13 +400,7 @@
</TableCell>
<TableCell value={email.mailHeaderFrom} />
<TableCell value={email.mailHeaderSubject} />
<TableCellCheck>
{#if email.addTrackingPixel}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck value={email.addTrackingPixel} />
<TableCellEmpty />
<TableCellAction>
<TableDropDownEllipsis>
+1 -7
View File
@@ -345,13 +345,7 @@
{entry.name}
</button>
</TableCell>
<TableCellCheck>
{#if entry.allowed}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck value={entry.allowed} />
<TableCellEmpty />
<TableCellAction>
<TableDropDownEllipsis>
+1 -7
View File
@@ -438,13 +438,7 @@
<TableCell value={recipient.phone} />
<TableCell value={recipient.extraIdentifier} />
<TableCell value={recipient.position} />
<TableCellCheck>
{#if recipient.isRepeatOffender}
<span class="text-red-600 font-bold text-center">Yes</span>
{:else}
<span class="text-green-600">No</span>
{/if}
</TableCellCheck>
<TableCellCheck value={recipient.isRepeatOffender} />
<TableCell value={recipient.department} />
<TableCell value={recipient.city} />
<TableCell value={recipient.country} />
+1 -7
View File
@@ -139,13 +139,7 @@
{#each sessions as session}
<TableRow>
<TableCell value={session.ip} />
<TableCellCheck>
{#if session.current}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck value={session.current} />
<TableCellEmpty />
<TableCellAction>
<TableDropDownEllipsis>
+1 -7
View File
@@ -269,13 +269,7 @@
>
<TableCell value={user.email} />
<TableCell value={user.name} />
<TableCellCheck>
{#if user.ssoID}
<img class="w-6" src="/icon-true.svg" alt="true" />
{:else}
<img class="w-6" src="/icon-false.svg" alt="false" />
{/if}
</TableCellCheck>
<TableCellCheck value={!!user.ssoID} />
<TableCellEmpty />
<TableCellAction>
<TableDropDownEllipsis>