1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

vueui: added notes to calendar year computed props

This commit is contained in:
Ivan Velev 2021-09-21 06:44:25 -07:00
parent 000c12f2d6
commit fbdbb84b3e

View File

@ -65,9 +65,10 @@ export default {
document.querySelector('body').addEventListener('click', this.resetCurrentTimeline);
},
computed: {
year() {
year() { // the year that the timeline period is in
let year = null;
if (this.period.type === PywbPeriod.Type.all) {
// if timeline is showing all year => pick the LAST YEAR
year = this.period.children[this.period.children.length-1];
} else if (this.period.type === PywbPeriod.Type.year) {
year = this.period;
@ -79,7 +80,7 @@ export default {
}
return year;
},
currentMonth() {
currentMonth() { // the month that the timeline period is in
let month = null;
if (this.period.type === PywbPeriod.Type.month) {
month = this.period;