mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 03:11:34 +00:00
fixed date
This commit is contained in:
parent
578b877c0c
commit
4a32807417
1 changed files with 5 additions and 2 deletions
|
|
@ -105,6 +105,9 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
isAdminOrUp() {
|
isAdminOrUp() {
|
||||||
return this.$store.getters['user/getIsAdminOrUp']
|
return this.$store.getters['user/getIsAdminOrUp']
|
||||||
|
},
|
||||||
|
user() {
|
||||||
|
return this.$store.state.user.user
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -132,8 +135,8 @@ export default {
|
||||||
this.showYearInReview = !this.showYearInReview
|
this.showYearInReview = !this.showYearInReview
|
||||||
},
|
},
|
||||||
eventOptions() {
|
eventOptions() {
|
||||||
if(this.$store.getters['libraries/getCurrentLibrary']) {
|
if(this.user) {
|
||||||
const oldestDate = this.$store.getters['libraries/getCurrentLibrary'].createdAt
|
const oldestDate = this.user.createdAt
|
||||||
if (oldestDate) {
|
if (oldestDate) {
|
||||||
const date = new Date(oldestDate)
|
const date = new Date(oldestDate)
|
||||||
const oldestYear = date.getFullYear()
|
const oldestYear = date.getFullYear()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue