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

app: calendar month view: prevent click on no-snapshot days from zooming to day

This commit is contained in:
Ivan Velev 2021-09-07 13:28:34 -07:00
parent 8a40c436a3
commit 4d58ce1156
2 changed files with 14 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -77,6 +77,9 @@
.calendar-month .day:hover {
cursor: zoom-in;
}
.calendar-month .day.empty:hover {
cursor: not-allowed;
}
</style>
<template>
@ -128,6 +131,9 @@ export default {
},
methods: {
gotoDay(day) {
if (!day || !day.snapshotCount) {
return;
}
// upon doing to day, tell timeline to highlight itself
this.$root.timelineHighlight = true;
this.$emit("goto-period", day);