aboutsummaryrefslogtreecommitdiff
path: root/src/site/pages/dashboard/albums
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-10-12 15:47:25 +0900
committerPitu <[email protected]>2019-10-12 15:47:25 +0900
commit391ee68e4a67aec640e25bc3506f9e31c77e58f5 (patch)
tree79a73f30997dfe7bc2b355eb3421e13b81d49dd2 /src/site/pages/dashboard/albums
parentchore: remove exif strip support. (diff)
downloadhost.fuwn.me-391ee68e4a67aec640e25bc3506f9e31c77e58f5.tar.xz
host.fuwn.me-391ee68e4a67aec640e25bc3506f9e31c77e58f5.zip
chore: Upgrade buefy to newest version
Diffstat (limited to 'src/site/pages/dashboard/albums')
-rw-r--r--src/site/pages/dashboard/albums/_id.vue2
-rw-r--r--src/site/pages/dashboard/albums/index.vue14
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() {