fixed some error from merge request

This commit is contained in:
2025-06-12 13:02:23 +02:00
parent ecc2564c70
commit 03a304f6fe
5 changed files with 8 additions and 49 deletions

View File

@@ -32,22 +32,15 @@
async function delete_item(ev: Event) {
let delete_item = window.confirm('Bist du sicher?');
let delete_item = window.confirm('Bist du sicher?');
if (delete_item) {
const target = ev.currentTarget as HTMLElement | null;
if (!target) return;
let filename = target.id.split('del__')[1];
const target = ev.currentTarget as HTMLElement | null;
if (!target) return;
let filename = target.id.split('del__')[1];
// delete request
// --------------
// delete request
// --------------
let url = `/api/list/${filename}`;
let url = `/api/list/${filename}`;
try {
@@ -108,9 +101,3 @@
min-width: 24rem;
}
</style>
<style>
ul {
min-width: 24rem;
}
</style>