Feat: locale for date and button for adding next month

This commit is contained in:
2021-08-12 15:12:57 +02:00
parent 37d1967343
commit 35666dce00
4 changed files with 59 additions and 18 deletions

View File

@@ -34,6 +34,10 @@ const travail = {
// Get all the months
return Object.keys(state.months).sort().reverse()
},
lastMonthDate(state) {
// Return the date of the last registered month
return Object.keys(state.months).sort().reverse()[0]
},
months: (state, getters) => {
// Get in range months
const a = Object.keys(state.months)