fix: be able to delete tags
This commit is contained in:
parent
1c463ea81e
commit
d9e0537a1d
|
@ -3,7 +3,7 @@ const Util = require('../../utils/Util');
|
|||
|
||||
class tagDELETE extends Route {
|
||||
constructor() {
|
||||
super('/tag/:id/:purge*?', 'delete');
|
||||
super('/tag/:id/:purge?', 'delete');
|
||||
}
|
||||
|
||||
async run(req, res, db, user) {
|
||||
|
|
|
@ -153,7 +153,7 @@
|
|||
class="album">
|
||||
<div
|
||||
class="arrow-container"
|
||||
@click="promptDeleteTag">
|
||||
@click="promptDeleteTag(tag.id)">
|
||||
<i class="icon-arrow" />
|
||||
</div>
|
||||
<!--
|
||||
|
@ -246,7 +246,7 @@ export default {
|
|||
});
|
||||
},
|
||||
async deleteTag(id, purge) {
|
||||
const response = await this.$axios.$delete(`tags/${id}/${purge ? 'purge' : ''}`);
|
||||
const response = await this.$axios.$delete(`tag/${id}/${purge ? 'purge' : ''}`);
|
||||
this.getTags();
|
||||
return this.$buefy.toast.open(response.message);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue