Skip to content

Commit 205172d

Browse files
committed
Clarify vulnerability warning messages in error components to specify exposure risks for jobs and workloads
1 parent fb8875d commit 205172d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/lib/components/errors/ErrorMessage.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@
185185
>, and update affected dependencies to their latest patched versions.
186186
</BodyLong>
187187
<BodyLong>
188-
Ignoring these vulnerabilities can expose your application to potential security breaches.
188+
Ignoring these vulnerabilities can expose your {workloadType === 'Job'
189+
? 'job'
190+
: 'application'} to potential security breaches.
189191
</BodyLong>
190192
{/if}
191193
</div>

src/lib/components/errors/TeamErrorMessage.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@
138138
, and update affected dependencies to their latest patched versions.
139139
</BodyLong>
140140
<BodyLong>
141-
Ignoring these vulnerabilities can expose your {workloads.length === 1 ? '' : 's'} to potential
142-
security breaches.
141+
Ignoring these vulnerabilities can expose your workload{workloads.length === 1 ? '' : 's'} to
142+
potential security breaches.
143143
</BodyLong>
144144
{/if}
145145
</div></Alert

0 commit comments

Comments
 (0)