Skip to content

Open source personal finance application

fix daysjs date

ilkomeaf645c9e4126
diff --git a/components/trns/list/TrnsList.vue b/components/trns/list/TrnsList.vue
index 4ea7b150..3554d457 100644
--- a/components/trns/list/TrnsList.vue
+++ b/components/trns/list/TrnsList.vue
@@ -98,7 +98,7 @@ export default {
<template lang="pug">
.trnsList
.trnsList__sort(
- v-if="$store.getters['user/isTester']"
+ v-if="$store.getters['user/isTester'] && ui === 'history'"
@click="sortByEditDate = !sortByEditDate"
)
template(v-if="sortByEditDate") Sort by transaction date
diff --git a/plugins/dayjs.js b/plugins/dayjs.js
index 698e28c1..e39c6fc1 100644
--- a/plugins/dayjs.js
+++ b/plugins/dayjs.js
@@ -1,4 +1,11 @@
import dayjs from 'dayjs'
+const updateLocale = require('dayjs/plugin/updateLocale')
+dayjs.extend(updateLocale)
+
+dayjs.updateLocale('en', {
+ weekStart: 1
+})
+
const weekOfYear = require('dayjs/plugin/weekOfYear')
dayjs.extend(weekOfYear)