Project Alerts @if (initialLoad() === true) { @if (newAlertOpen() === true) {

New Alert

@if (newAlertError(); as error) {

{{ error }}

}

Recipients:

@if (newProjectAlertRecipients()?.length === 0) {

This alert isn't being sent anywhere. Select "Add An Alert Recipient" below to get started.

}
    @for ( recipient of newProjectAlertRecipients(); track recipient; let recipientIndex = $index ) {
  • @if (recipient.recipientType === "email") { email
    Send an email to team members on this project.
    } @if ( recipient.recipientType === "webhook" || recipient.recipientType === "discord" || recipient.recipientType === "googlechat" ) {
    @if (recipient.recipientType === "discord") { } @if (recipient.recipientType === "googlechat") { } @if (recipient.recipientType === "webhook") { }
    {{ recipient.url }}
    }
  • }
Submit
} @if (projectAlerts()?.length === 0 && newAlertOpen() === false) {

You don't have any alerts set up. Click "Create New Alert" on the top right of this card to get started.

} @else { @for (alert of projectAlerts(); track alert; let i = $index) {
@if (i !== 0) { } @if (removeAlertError()?.id === alert.id) {

{{ removeAlertError()?.error }}

}
@if (alert.name) {

{{ alert.name }}

} @else {

Alert {{ i + 1 }}

}
@if (updatePropertiesError()?.id === alert.id) {

{{ updatePropertiesError()?.error }}

}

Recipients:

@if (deleteRecipientError(); as error) {

{{ error }}

} @if (alert.alertRecipients.length === 0) {

This alert isn't being sent anywhere. Select "Add An Alert Recipient" below to get started.

}
    @for ( recipient of alert.alertRecipients; track recipient; let recipientIndex = $index ) {
  • @if (recipient.recipientType === "email") { email
    Send an email to team members on this project.
    } @if ( recipient.recipientType === "webhook" || recipient.recipientType === "discord" || recipient.recipientType === "googlechat" ) {
    @if (recipient.recipientType === "discord") { } @if (recipient.recipientType === "googlechat") { } @if (recipient.recipientType === "webhook") { }
    {{ recipient.url }}
    } @if (deleteRecipientLoading() === recipient.id) { } @else { }
  • }
} } } @if (initialLoad() === false) {
} @if (initialLoadError(); as error) {
{{ error }}
}