+
{policy.id}
{#if policy.description}
-
{policy.description}
+
+ {policy.description}
+
{/if}
{policy.priority}
@@ -122,7 +123,9 @@
{:else}
{#each policy.ingestionScope as sourceId (sourceId)}
- {@const source = ingestionSources.find((s) => s.id === sourceId)}
+ {@const source = ingestionSources.find(
+ (s) => s.id === sourceId
+ )}
{source?.name ?? sourceId.slice(0, 8) + '…'}
@@ -131,7 +134,9 @@
{/if}
- {conditionsSummary(policy)}
+ {conditionsSummary(policy)}
{#if policy.isActive}
@@ -330,7 +335,9 @@
- {$t('app.retention_policies.simulator_ingestion_all')}
+ {$t('app.retention_policies.simulator_ingestion_all')}
{#each ingestionSources as source (source.id)}
@@ -370,7 +377,9 @@
{:else}
-
+
{($t as any)('app.retention_policies.simulator_matched', {
days: evaluationResult.appliedRetentionDays,
@@ -379,18 +388,24 @@
{#if evaluationResult.matchingPolicyIds.length > 0}
-
+
{$t('app.retention_policies.simulator_matching_policies')}
{#each evaluationResult.matchingPolicyIds as policyId (policyId)}
{@const matchedPolicy = policies.find((p) => p.id === policyId)}
-
+
{policyId}
{#if matchedPolicy}
- ({matchedPolicy.name})
+ ({matchedPolicy.name})
{/if}
{/each}
@@ -419,11 +434,7 @@
-