+
+ {#if editingIndex === index}
+
+ {:else}
+ {alert.name}
+ {/if}
+
+
+ {#if editingIndex === index}
+
+ {#each alert.tags_to_monitor as tag}
+
+ {tag}
+ removeTag(index, tag)}
+ aria-label="Remove Tag"
+ class="ml-1 text-black text-xs">x
+
+ {/each}
+
+
+
filterTags(e)}
+ class="p-1 flex-grow mr-1"
+ />
+
addTag(index, newTag)} aria-label="Add Tag">
+
+
+
+
+ addAllTags(index)}
+ class="text-xs hover:bg-gray-200 rounded px-2 py-1 mt-1"
+ >
+ Add All Tags
+
+ {#if filteredTags.length > 0}
+
+ {#each filteredTags as tag}
+
+ addTag(index, tag)}
+ >{tag}
+
+ {/each}
+
+ {/if}
+ {:else}
+
+ {#each alert.tags_to_monitor as tag}
+ {tag}
+ {/each}
+
+ {/if}
+
+
+ {#if editingIndex === index}
+
+ {:else}
+ {alert.jobs_num_threshold}
+ {/if}
+
+
+ {#if editingIndex === index}
+
+ {:else}
+ {alert.alert_cooldown_seconds}
+ {/if}
+
+
+ {#if editingIndex === index}
+
+ {:else}
+ {alert.alert_time_threshold_seconds}
+ {/if}
+
+
+
+ {#if editingIndex === index}
+
saveAlert(index)} aria-label="Save">
+
+
+ {:else}
+
startEditing(index)} aria-label="Edit">
+
+
+
stageDeleteAlert(index)} aria-label="Delete">
+
+
+ {/if}
+
+
+
+ {/each}
+