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/pages/dashboard/albums | |
| 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/pages/dashboard/albums')
| -rw-r--r-- | src/site/pages/dashboard/albums/_id.vue | 16 | ||||
| -rw-r--r-- | src/site/pages/dashboard/albums/index.vue | 10 |
2 files changed, 13 insertions, 13 deletions
diff --git a/src/site/pages/dashboard/albums/_id.vue b/src/site/pages/dashboard/albums/_id.vue index 0b67ec3..cf27a15 100644 --- a/src/site/pages/dashboard/albums/_id.vue +++ b/src/site/pages/dashboard/albums/_id.vue @@ -72,7 +72,7 @@ export default { components: { Sidebar, Grid, - Search, + Search }, middleware: ['auth', ({ route, store }) => { store.commit('images/resetState'); @@ -80,34 +80,34 @@ export default { }], data() { return { - current: 1, + current: 1 }; }, computed: { ...mapGetters({ totalFiles: 'images/getTotalFiles', shouldPaginate: 'images/shouldPaginate', - limit: 'images/getLimit', + limit: 'images/getLimit' }), ...mapState(['images']), id() { return this.$route.params.id; - }, + } }, metaInfo() { return { title: 'Album' }; }, watch: { - current: 'fetchPaginate', + current: 'fetchPaginate' }, methods: { ...mapActions({ - fetch: 'images/fetchByAlbumId', + fetch: 'images/fetchByAlbumId' }), fetchPaginate() { this.fetch({ id: this.id, page: this.current }); - }, - }, + } + } }; </script> diff --git a/src/site/pages/dashboard/albums/index.vue b/src/site/pages/dashboard/albums/index.vue index c5acb2e..896d134 100644 --- a/src/site/pages/dashboard/albums/index.vue +++ b/src/site/pages/dashboard/albums/index.vue @@ -53,7 +53,7 @@ import AlbumEntry from '~/components/album/AlbumEntry.vue'; export default { components: { Sidebar, - AlbumEntry, + AlbumEntry }, middleware: ['auth', ({ store }) => { try { @@ -65,7 +65,7 @@ export default { data() { return { newAlbumName: null, - isCreatingAlbum: false, + isCreatingAlbum: false }; }, computed: mapState(['config', 'albums']), @@ -74,7 +74,7 @@ export default { }, methods: { ...mapActions({ - 'alert': 'alert/set', + 'alert': 'alert/set' }), async createAlbum() { if (!this.newAlbumName || this.newAlbumName === '') return; @@ -90,8 +90,8 @@ export default { this.isCreatingAlbum = false; this.newAlbumName = null; } - }, - }, + } + } }; </script> |