diff options
| author | Zephyrrus <[email protected]> | 2020-07-07 02:02:59 +0300 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-07-07 02:02:59 +0300 |
| commit | fb0bc57542a44dcc94149f393d8a4ff0c2e7902b (patch) | |
| tree | c80b075e1d53a1c381a9f40195a1fd72c7b69922 /src/site/pages/dashboard/albums | |
| parent | chore: eslint stores (diff) | |
| download | host.fuwn.me-fb0bc57542a44dcc94149f393d8a4ff0c2e7902b.tar.xz host.fuwn.me-fb0bc57542a44dcc94149f393d8a4ff0c2e7902b.zip | |
feat: try fixing THE SHITTY WATERFALL
Diffstat (limited to 'src/site/pages/dashboard/albums')
| -rw-r--r-- | src/site/pages/dashboard/albums/_id.vue | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/site/pages/dashboard/albums/_id.vue b/src/site/pages/dashboard/albums/_id.vue index 0d3bd68..33b0319 100644 --- a/src/site/pages/dashboard/albums/_id.vue +++ b/src/site/pages/dashboard/albums/_id.vue @@ -14,7 +14,7 @@ <div class="level-left"> <div class="level-item"> <h1 class="title is-3"> - {{ name }} + {{ images.name }} </h1> </div> <div class="level-item"> @@ -45,7 +45,7 @@ <Grid v-if="totalFiles" - :files="album.files" + :files="images.files" :total="totalFiles"> <template v-slot:pagination> <b-pagination @@ -83,7 +83,7 @@ export default { Grid, }, middleware: ['auth', ({ route, store }) => { - store.dispatch('album/fetchById', { id: route.params.id }); + store.dispatch('images/fetchByAlbumId', { id: route.params.id }); }], data() { return { @@ -92,12 +92,11 @@ export default { }, computed: { ...mapGetters({ - totalFiles: 'album/getTotalFiles', - shouldPaginate: 'album/shouldPaginate', - limit: 'album/getLimit', - name: 'album/getName', + totalFiles: 'images/getTotalFiles', + shouldPaginate: 'images/shouldPaginate', + limit: 'images/getLimit', }), - ...mapState(['album']), + ...mapState(['images']), id() { return this.$route.params.id; }, @@ -110,7 +109,7 @@ export default { }, methods: { ...mapActions({ - fetch: 'album/fetchById', + fetch: 'images/fetchByAlbumId', }), fetchPaginate() { this.fetch({ id: this.id, page: this.current }); |