mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-28 13:46:20 +02:00
fixed date
This commit is contained in:
parent
578b877c0c
commit
4a32807417
@ -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…
Reference in New Issue
Block a user