mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-11-29 14:50:34 +08:00
- Add an UntrustedWarning banner - Warn on the Others releases list - Warn on a release by a non-delegate - Warn on artifacts by non-delegates on a delegate release - Warn in the download popover for a non-delegate artifact - Add E2E tests for both release cases Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
30 lines
548 B
Svelte
30 lines
548 B
Svelte
<script lang="ts">
|
|
import Icon from "@app/components/Icon.svelte";
|
|
|
|
interface Props {
|
|
text: string;
|
|
}
|
|
|
|
const { text }: Props = $props();
|
|
</script>
|
|
|
|
<style>
|
|
.banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
color: var(--color-text-secondary);
|
|
font: var(--txt-body-s-regular);
|
|
}
|
|
.icon {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
color: var(--color-feedback-warning-text);
|
|
}
|
|
</style>
|
|
|
|
<div class="banner" role="note">
|
|
<span class="icon"><Icon name="warning" /></span>
|
|
<span>{text}</span>
|
|
</div>
|