Allow delete all missing items (#151)

This commit is contained in:
Alex Ling
2021-01-28 09:55:41 +00:00
parent b5db508005
commit a389fa7178
4 changed files with 66 additions and 7 deletions

View File

@@ -24,6 +24,20 @@ const component = () => {
this.load();
});
},
rmAll() {
UIkit.modal.confirm('Are you sure? All metadata associated with these items, including their tags and thumbnails, will be deleted from the database.', {
labels: {
ok: 'Yes, delete them',
cancel: 'Cancel'
}
}).then(() => {
this.request('DELETE', `${base_url}api/admin/titles/missing`, () => {
this.request('DELETE', `${base_url}api/admin/entries/missing`, () => {
this.load();
});
});
});
},
request(method, url, cb) {
console.log(url);
$.ajax({