diff options
Diffstat (limited to 'src/site/pages/dashboard/albums')
| -rw-r--r-- | src/site/pages/dashboard/albums/_id.vue | 2 | ||||
| -rw-r--r-- | src/site/pages/dashboard/albums/index.vue | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/site/pages/dashboard/albums/_id.vue b/src/site/pages/dashboard/albums/_id.vue index 037957c..964a416 100644 --- a/src/site/pages/dashboard/albums/_id.vue +++ b/src/site/pages/dashboard/albums/_id.vue @@ -107,7 +107,7 @@ export default { albumId: id, fileId: this.showingModalForFile.id }); - this.$toast.open(response.message); + this.$buefy.toast.open(response.message); this.getFiles(); }, async getAlbums() { diff --git a/src/site/pages/dashboard/albums/index.vue b/src/site/pages/dashboard/albums/index.vue index 9a7f8c9..123f1cd 100644 --- a/src/site/pages/dashboard/albums/index.vue +++ b/src/site/pages/dashboard/albums/index.vue @@ -295,7 +295,7 @@ export default { }, methods: { promptDeleteAlbum(id) { - this.$dialog.confirm({ + this.$buefy.dialog.confirm({ message: 'Are you sure you want to delete this album?', onConfirm: () => this.deleteAlbum(id) }); @@ -303,17 +303,17 @@ export default { async deleteAlbum(id) { const response = await this.$axios.$delete(`album/${id}`); this.getAlbums(); - return this.$toast.open(response.message); + return this.$buefy.toast.open(response.message); }, promptDeleteAlbumLink(identifier) { - this.$dialog.confirm({ + this.$buefy.dialog.confirm({ message: 'Are you sure you want to delete this album link?', onConfirm: () => this.deleteAlbumLink(identifier) }); }, async deleteAlbumLink(identifier) { const response = await this.$axios.$delete(`album/link/delete/${identifier}`); - return this.$toast.open(response.message); + return this.$buefy.toast.open(response.message); }, async linkOptionsChanged(link) { const response = await this.$axios.$post(`album/link/edit`, @@ -322,7 +322,7 @@ export default { enableDownload: link.enableDownload, enabled: link.enabled }); - this.$toast.open(response.message); + this.$buefy.toast.open(response.message); }, async createLink(album) { album.isCreatingLink = true; @@ -330,7 +330,7 @@ export default { try { const response = await this.$axios.$post(`album/link/new`, { albumId: album.id }); - this.$toast.open(response.message); + this.$buefy.toast.open(response.message); album.links.push({ identifier: response.identifier, views: 0, @@ -349,7 +349,7 @@ export default { const response = await this.$axios.$post(`album/new`, { name: this.newAlbumName }); this.newAlbumName = null; - this.$toast.open(response.message); + this.$buefy.toast.open(response.message); this.getAlbums(); }, async getAlbums() { |