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