diff options
| author | Zephyrrus <[email protected]> | 2020-12-24 10:40:50 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-12-24 10:40:50 +0200 |
| commit | 90001c2df56d58e69fd199a518ae7f3e4ed327fc (patch) | |
| tree | ac601537b5f464a1b03b084e5139e460f42e3473 /src/site/store/albums.js | |
| parent | chore: update lock files (diff) | |
| download | host.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.tar.xz host.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.zip | |
chore: remove trailing commas
Diffstat (limited to 'src/site/store/albums.js')
| -rw-r--r-- | src/site/store/albums.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/site/store/albums.js b/src/site/store/albums.js index c1ff696..4f796a1 100644 --- a/src/site/store/albums.js +++ b/src/site/store/albums.js @@ -5,12 +5,12 @@ export const state = () => ({ isListLoading: false, albumDetails: {}, expandedAlbums: [], - tinyDetails: [], + tinyDetails: [] }); export const getters = { isExpanded: (state) => (id) => state.expandedAlbums.indexOf(id) > -1, - getDetails: (state) => (id) => state.albumDetails[id] || {}, + getDetails: (state) => (id) => state.albumDetails[id] || {} }; export const actions = { @@ -28,8 +28,8 @@ export const actions = { commit('setDetails', { id: albumId, details: { - links: response.links, - }, + links: response.links + } }); return response; @@ -66,7 +66,7 @@ export const actions = { const response = await this.$axios.$post('album/link/edit', { identifier: linkOpts.identifier, enableDownload: linkOpts.enableDownload, - enabled: linkOpts.enabled, + enabled: linkOpts.enabled }); commit('updateAlbumLinkOpts', { albumId, linkOpts: response.data }); @@ -86,7 +86,7 @@ export const actions = { commit('setTinyDetails', response); return response; - }, + } }; export const mutations = { @@ -113,7 +113,7 @@ export const mutations = { }, updateAlbumLinkOpts(state, { albumId, linkOpts }) { const foundIndex = state.albumDetails[albumId].links.findIndex( - ({ identifier }) => identifier === linkOpts.identifier, + ({ identifier }) => identifier === linkOpts.identifier ); const link = state.albumDetails[albumId].links[foundIndex]; state.albumDetails[albumId].links[foundIndex] = { ...link, ...linkOpts }; @@ -132,5 +132,5 @@ export const mutations = { }, setTinyDetails(state, { albums }) { state.tinyDetails = albums; - }, + } }; |