Moved summary template editor to profile page.

This commit is contained in:
2024-09-01 02:54:03 +02:00
parent 2cf7f2a692
commit 05fff7608e
8 changed files with 190 additions and 96 deletions

View File

@@ -138,6 +138,7 @@
<div class="alert-actions">
<span
v-tooltip="format(alert.createdAt, 'yyyy-MM-dd hh:mm')"
class="alert-id"
title="Alert ID"
>#{{ alert.id }}</span>
@@ -160,6 +161,7 @@
<script setup>
import { ref, inject } from 'vue';
import { format } from 'date-fns';
import AlertDialog from '#/components/alerts/create.vue';
@@ -180,7 +182,6 @@ async function removeAlert(alert) {
return;
}
console.log(JSON.stringify(alert, null, 4));
if (!confirm(`Are you sure you want to remove alert #${alert.id}?`)) { // eslint-disable-line no-restricted-globals, no-alert
return;
}