Update frontpage and packages.

This commit is contained in:
James Cole
2021-07-30 07:02:11 +02:00
parent 1a79525024
commit 8ebdd481aa
24 changed files with 362 additions and 282 deletions

View File

@@ -46,8 +46,6 @@
</template>
<script>
import {mapGetters} from "vuex";
export default {
name: "GenericCurrency",
props: {
@@ -58,9 +56,6 @@ export default {
default: false
},
},
computed: {
...mapGetters('root', [ 'cacheKey']),
},
data() {
return {
loading: true,
@@ -73,7 +68,7 @@ export default {
this.loadCurrencyPage(1);
},
loadCurrencyPage: function (page) {
axios.get('./api/v1/currencies?page=' + page + '&key=' + this.cacheKey)
axios.get('./api/v1/currencies?page=' + page)
.then(response => {
let totalPages = parseInt(response.data.meta.pagination.total_pages);
let currentPage = parseInt(response.data.meta.pagination.current_page);