+
Email Digest Settings
+
+ {#snippet label()}
+ Receive email digest of missed activity
+ {/snippet}
+ {#snippet input()}
+
+ {/snippet}
+
+ {#if settings.email}
+ {#if $communitiesWithoutEmail.length > 0}
+
+
+ {#if $communitiesWithoutEmail.length === 1}
+ 1 of your communities does not support email notifications.
+ {:else}
+ {$communitiesWithoutEmail.length} of your communities do not support email notifications.
+ {/if}
+
+
+
+ {#each $communitiesWithoutEmail as name (name)}
+ - {name}
+ {/each}
+
+
+ {/if}
+
+ {#snippet label()}
+ Email address
+ {/snippet}
+ {#snippet input()}
+
+ {/snippet}
+
+
+ {#snippet label()}
+ Frequency
+ {/snippet}
+ {#snippet input()}
+
+ {/snippet}
+
+
+ {#snippet label()}
+ Time
+ {/snippet}
+ {#snippet input()}
+ {
+ const [h, m] = e.currentTarget.value.split(":").map(Number)
+ settings.emailHour = h
+ settings.emailMinute = m
+ }} />
+ {/snippet}
+
+ {#if settings.emailFrequency === "weekly"}
+
+ {#snippet label()}
+ Day of week
+ {/snippet}
+ {#snippet input()}
+
+ {#each [{label: "M", value: 1}, {label: "T", value: 2}, {label: "W", value: 3}, {label: "T", value: 4}, {label: "F", value: 5}, {label: "S", value: 6}, {label: "S", value: 7}] as day (day.value)}
+
+ {/each}
+
+ {/snippet}
+
+ {/if}
+ {/if}
+ {#if $emailNotificationState.error}
+
+ {$emailNotificationState.error}
+
+ {/if}
+
+ {/if}