mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
vueui: added notes to calendar year computed props
This commit is contained in:
parent
000c12f2d6
commit
fbdbb84b3e
@ -65,9 +65,10 @@ export default {
|
|||||||
document.querySelector('body').addEventListener('click', this.resetCurrentTimeline);
|
document.querySelector('body').addEventListener('click', this.resetCurrentTimeline);
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
year() {
|
year() { // the year that the timeline period is in
|
||||||
let year = null;
|
let year = null;
|
||||||
if (this.period.type === PywbPeriod.Type.all) {
|
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];
|
year = this.period.children[this.period.children.length-1];
|
||||||
} else if (this.period.type === PywbPeriod.Type.year) {
|
} else if (this.period.type === PywbPeriod.Type.year) {
|
||||||
year = this.period;
|
year = this.period;
|
||||||
@ -79,7 +80,7 @@ export default {
|
|||||||
}
|
}
|
||||||
return year;
|
return year;
|
||||||
},
|
},
|
||||||
currentMonth() {
|
currentMonth() { // the month that the timeline period is in
|
||||||
let month = null;
|
let month = null;
|
||||||
if (this.period.type === PywbPeriod.Type.month) {
|
if (this.period.type === PywbPeriod.Type.month) {
|
||||||
month = this.period;
|
month = this.period;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user