mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-06 12:27:25 +00:00
Update and improve bills.
This commit is contained in:
@@ -46,16 +46,21 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapGetters} from "vuex";
|
||||
|
||||
export default {
|
||||
name: "Currency",
|
||||
name: "GenericCurrency",
|
||||
props: {
|
||||
value: {},
|
||||
errors: {},
|
||||
errors: [],
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapGetters('root', [ 'cacheKey']),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: true,
|
||||
@@ -68,7 +73,7 @@ export default {
|
||||
this.loadCurrencyPage(1);
|
||||
},
|
||||
loadCurrencyPage: function (page) {
|
||||
axios.get('./api/v1/currencies?page=' + page)
|
||||
axios.get('./api/v1/currencies?page=' + page + '&key=' + this.cacheKey)
|
||||
.then(response => {
|
||||
let totalPages = parseInt(response.data.meta.pagination.total_pages);
|
||||
let currentPage = parseInt(response.data.meta.pagination.current_page);
|
||||
|
Reference in New Issue
Block a user