1
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user