diff --git a/src/boot/vnDate.js b/src/boot/vnDate.js index c78886b57..33d5ac27f 100644 --- a/src/boot/vnDate.js +++ b/src/boot/vnDate.js @@ -15,4 +15,14 @@ export default boot(() => { Date.vnNow = () => { return new Date(Date.vnUTC()).getTime(); }; + + Date.vnFirstDayOfMonth = () => { + const date = new Date(Date.vnUTC()); + return new Date(date.getFullYear(), date.getMonth(), 1); + }; + + Date.vnLastDayOfMonth = () => { + const date = new Date(Date.vnUTC()); + return new Date(date.getFullYear(), date.getMonth() + 1, 0); + }; }); diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index a000bd1e4..86c524095 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -83,6 +83,7 @@ const options = [ + - - - - {{ option }} - - - + + {{ t('components.cardDescriptor.summary') }} + - + {{ t('components.cardDescriptor.moreOptions') }} - - + + + {{ option }} + diff --git a/src/components/ui/CardList2.vue b/src/components/ui/CardList2.vue index fd70a6854..f93a311c4 100644 --- a/src/components/ui/CardList2.vue +++ b/src/components/ui/CardList2.vue @@ -1,21 +1,35 @@