1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-24 06:59:52 +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 { .calendar-month .day:hover {
cursor: zoom-in; cursor: zoom-in;
} }
.calendar-month .day.empty:hover {
cursor: not-allowed;
}
</style> </style>
<template> <template>
@ -128,6 +131,9 @@ export default {
}, },
methods: { methods: {
gotoDay(day) { gotoDay(day) {
if (!day || !day.snapshotCount) {
return;
}
// upon doing to day, tell timeline to highlight itself // upon doing to day, tell timeline to highlight itself
this.$root.timelineHighlight = true; this.$root.timelineHighlight = true;
this.$emit("goto-period", day); this.$emit("goto-period", day);