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:
parent
8a40c436a3
commit
4d58ce1156
File diff suppressed because one or more lines are too long
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user