This commit is contained in:
2025-05-16 23:14:52 +08:00
parent 5080850523
commit c6d62a68ca
25 changed files with 543 additions and 60 deletions

View File

@@ -18,7 +18,7 @@
});
},
showModal: false,
confirmAction() {
editTheme() {
this.isSubmitting = true;
axios.put('themes', { theme: theme })
.then(data => {
@@ -28,6 +28,16 @@
this.isSubmitting = false;
});
},
confirmDelete() {
this.isSubmitting = true;
axios.delete('themes?theme=' + theme)
.then(data => {
this.loadItems();
})
.finally(() => {
this.isSubmitting = false;
});
},
init() {
this.loadItems();