mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-13 08:48:38 +01:00
implementing snapshots
This commit is contained in:
@@ -91,6 +91,12 @@ async function loadData(timelineEndpointName: string, target: Data) {
|
||||
|
||||
const response = useTimeline(timelineEndpointName as any, chartSlice);
|
||||
|
||||
response.onRequest(() => {
|
||||
target.ready = false;
|
||||
target.data = [];
|
||||
target.labels = [];
|
||||
})
|
||||
|
||||
response.onResponse(data => {
|
||||
|
||||
if (!data.value) return;
|
||||
|
||||
@@ -9,7 +9,7 @@ onUnmounted(() => stopWatching());
|
||||
const { createAlert } = useAlert();
|
||||
|
||||
function copyProjectId() {
|
||||
if (!navigator.clipboard) alert('NON PUOI COPIARE IN HTTP');
|
||||
if (!navigator.clipboard) alert('You can\'t copy in HTTP');
|
||||
navigator.clipboard.writeText((activeProject.value?._id || 0).toString());
|
||||
createAlert('Success', 'Project id copied successfully.', 'far fa-circle-check', 5000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user