aboutsummaryrefslogtreecommitdiff
path: root/src/site
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-09-30 07:24:37 +0000
committerPitu <[email protected]>2019-09-30 07:24:37 +0000
commit4db167ec43806e20cc40932a292efc2909e69328 (patch)
tree0bcf368689d98f867053237f85462408e73aab1a /src/site
parentfeature: tags logic (diff)
downloadhost.fuwn.me-4db167ec43806e20cc40932a292efc2909e69328.tar.xz
host.fuwn.me-4db167ec43806e20cc40932a292efc2909e69328.zip
Fix deletion of albums and links
Diffstat (limited to 'src/site')
-rw-r--r--src/site/pages/dashboard/albums/index.vue13
-rw-r--r--src/site/pages/dashboard/tags/index.vue2
2 files changed, 3 insertions, 12 deletions
diff --git a/src/site/pages/dashboard/albums/index.vue b/src/site/pages/dashboard/albums/index.vue
index 079114d..9a7f8c9 100644
--- a/src/site/pages/dashboard/albums/index.vue
+++ b/src/site/pages/dashboard/albums/index.vue
@@ -300,17 +300,8 @@ export default {
onConfirm: () => this.deleteAlbum(id)
});
},
- promptPurgeAlbum(id) {
- this.$dialog.confirm({
- message: 'Would you like to delete every file associated with this album?',
- cancelText: 'No',
- confirmText: 'Yes',
- onConfirm: () => this.deleteAlbum(id, true),
- onCancel: () => this.deleteAlbum(id, false)
- });
- },
- async deleteAlbum(id, purge) {
- const response = await this.$axios.$delete(`album/${id}/${purge ? true : ''}`);
+ async deleteAlbum(id) {
+ const response = await this.$axios.$delete(`album/${id}`);
this.getAlbums();
return this.$toast.open(response.message);
},
diff --git a/src/site/pages/dashboard/tags/index.vue b/src/site/pages/dashboard/tags/index.vue
index 6dbcb55..a025d46 100644
--- a/src/site/pages/dashboard/tags/index.vue
+++ b/src/site/pages/dashboard/tags/index.vue
@@ -249,7 +249,7 @@ export default {
});
},
async deleteTag(id, purge) {
- const response = await this.$axios.$delete(`tags/${id}/${purge ? true : ''}`);
+ const response = await this.$axios.$delete(`tags/${id}/${purge ? 'purge' : ''}`);
this.getTags();
return this.$toast.open(response.message);
},