Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
<script lang="ts">
import SettingsRow from '#lib/components/settings/settings-row.svelte';
import { Switch } from '#lib/components/ui/switch/index.js';
import { m } from '#lib/paraglide/messages.js';
interface Props {
providerId: string;
eventImageUpdate: boolean;
eventContainerUpdate: boolean;
eventVulnerabilityFound: boolean;
eventPruneReport: boolean;
eventAutoHeal: boolean;
disabled?: boolean;
}
let {
providerId,
eventImageUpdate = $bindable(),
eventContainerUpdate = $bindable(),
eventVulnerabilityFound = $bindable(),
eventPruneReport = $bindable(),
eventAutoHeal = $bindable(),
disabled = false
}: Props = $props();
</script>
<!-- Rendered inside the provider section, so each event is its own row. -->
<SettingsRow
for="{providerId}-event-image-update"
label={m.notifications_event_image_update_label()}
description={m.notifications_event_image_update_description()}
layout="switch"
>
<Switch id="{providerId}-event-image-update" bind:checked={eventImageUpdate} {disabled} />
</SettingsRow>
<SettingsRow
for="{providerId}-event-container-update"
label={m.notifications_event_container_update_label()}
description={m.notifications_event_container_update_description()}
layout="switch"
>
<Switch id="{providerId}-event-container-update" bind:checked={eventContainerUpdate} {disabled} />
</SettingsRow>
<SettingsRow
for="{providerId}-event-prune-report"
label={m.notifications_event_prune_report_label()}
description={m.notifications_event_prune_report_description()}
layout="switch"
>
<Switch id="{providerId}-event-prune-report" bind:checked={eventPruneReport} {disabled} />
</SettingsRow>
<SettingsRow
for="{providerId}-event-vulnerability-found"
label={m.notifications_event_vulnerability_found_label()}
description={m.notifications_event_vulnerability_found_description()}
layout="switch"
>
<Switch id="{providerId}-event-vulnerability-found" bind:checked={eventVulnerabilityFound} {disabled} />
</SettingsRow>
<SettingsRow
for="{providerId}-event-auto-heal"
label={m.notifications_event_auto_heal_label()}
description={m.notifications_event_auto_heal_description()}
layout="switch"
>
<Switch id="{providerId}-event-auto-heal" bind:checked={eventAutoHeal} {disabled} />
</SettingsRow>