mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard history: Track version created timestamp in restore (#100451)
This commit is contained in:
committed by
GitHub
parent
21861867c1
commit
e2a101cde3
@@ -52,6 +52,7 @@ describe('VersionHistoryTable', () => {
|
||||
version: mockVersions[1].version,
|
||||
index: 1,
|
||||
confirm: false,
|
||||
timestamp: mockVersions[1].created,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -70,6 +70,7 @@ export const VersionHistoryTable = ({ versions, canCompare, onCheck, onRestore }
|
||||
version: version.version,
|
||||
index: idx,
|
||||
confirm: false,
|
||||
timestamp: version.created,
|
||||
});
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -118,7 +118,7 @@ export const DashboardInteractions = {
|
||||
},
|
||||
|
||||
// Dashboards versions interactions
|
||||
versionRestoreClicked: (properties: { version: number; index?: number; confirm: boolean }) => {
|
||||
versionRestoreClicked: (properties: { version: number; index?: number; confirm: boolean; timestamp?: Date }) => {
|
||||
reportDashboardInteraction('version_restore_clicked', properties);
|
||||
},
|
||||
showMoreVersionsClicked: () => {
|
||||
|
||||
Reference in New Issue
Block a user