From b886fda0793b8a26de58cd462acf6676a0a8e7ed Mon Sep 17 00:00:00 2001 From: Pitu Date: Mon, 11 May 2020 00:19:10 +0900 Subject: chore: cleanup and todo --- src/site/pages/dashboard/albums/_id.vue | 53 +-------------------------------- 1 file changed, 1 insertion(+), 52 deletions(-) (limited to 'src/site') diff --git a/src/site/pages/dashboard/albums/_id.vue b/src/site/pages/dashboard/albums/_id.vue index e4ab8dd..1b7c442 100644 --- a/src/site/pages/dashboard/albums/_id.vue +++ b/src/site/pages/dashboard/albums/_id.vue @@ -20,29 +20,6 @@ - - -
-
-
-

Select the albums this file should be a part of

-
-
-
-
- {{ album.name }} -
-
-
-
-
-
-
@@ -59,10 +36,7 @@ export default { data() { return { name: null, - files: [], - albums: [], - isAlbumsModalActive: false, - showingModalForFile: null + files: [] }; }, metaInfo() { @@ -78,31 +52,6 @@ export default { console.error(error); return { files: [] }; } - }, - methods: { - isAlbumSelected(id) { - if (!this.showingModalForFile) return; - const found = this.showingModalForFile.albums.find(el => el.id === id); - return found ? found.id ? true : false : false; - }, - openAlbumModal(file) { - // Only get the list if the usuer actually wants to change a file's album, otherwise useless call - this.getAlbums(); - this.showingModalForFile = file; - this.isAlbumsModalActive = true; - }, - async albumCheckboxClicked(value, id) { - const response = await this.$axios.$post(`file/album/${value ? 'add' : 'del'}`, { - albumId: id, - fileId: this.showingModalForFile.id - }); - this.$buefy.toast.open(response.message); - this.getFiles(); - }, - async getAlbums() { - const response = await this.$axios.$get(`albums/dropdown`); - this.albums = response.albums; - } } }; -- cgit v1.2.3