From:
-
{{ new Date(snapshot.from).toLocaleString('it-IT') }}
+
{{ new Date(snapshot.from).toLocaleString('it-IT').split(',')[0].trim() }}
To:
-
{{ new Date(snapshot.to).toLocaleString('it-IT') }}
+
{{ new Date(snapshot.to).toLocaleString('it-IT').split(',')[0].trim() }}
+
+
+
+
+ Delete current snapshot
+
+
+
+
+
+
+
diff --git a/dashboard/components/dialog/CreateSnapshot.vue b/dashboard/components/dialog/CreateSnapshot.vue
index bbeb855..9cfbd60 100644
--- a/dashboard/components/dialog/CreateSnapshot.vue
+++ b/dashboard/components/dialog/CreateSnapshot.vue
@@ -12,7 +12,7 @@ const ranges = [
{ label: 'Last 6 months', duration: { months: 6 } },
{ label: 'Last year', duration: { years: 1 } }
]
-const selected = ref({ start: sub(new Date(), { days: 14 }), end: new Date() })
+const selected = ref<{ start: Date, end: Date }>({ start: sub(new Date(), { days: 14 }), end: new Date() })
function isRangeSelected(duration: Duration) {
return isSameDay(selected.value.start, sub(new Date(), duration)) && isSameDay(selected.value.end, new Date())
@@ -22,7 +22,7 @@ function selectRange(duration: Duration) {
selected.value = { start: sub(new Date(), duration), end: new Date() }
}
-const currentColor = ref