diff --git a/pkg/rancher-desktop/components/Snapshots.vue b/pkg/rancher-desktop/components/Snapshots.vue index 63a969cd43e..e1efb4c1362 100644 --- a/pkg/rancher-desktop/components/Snapshots.vue +++ b/pkg/rancher-desktop/components/Snapshots.vue @@ -9,6 +9,7 @@ import EmptyState from '@pkg/components/EmptyState.vue'; import SnapshotCard from '@pkg/components/SnapshotCard.vue'; import { Snapshot, SnapshotEvent } from '@pkg/main/snapshots/types'; import { ipcRenderer } from '@pkg/utils/ipcRenderer'; +import { escapeHtml } from '@pkg/utils/string'; interface Data { snapshotEvent: SnapshotEvent | null; @@ -19,6 +20,7 @@ interface Data { interface Methods { pollingStart: () => void, currentTime: () => string, + escapeHtml: (name: string|undefined) => string, } interface Computed { @@ -85,6 +87,7 @@ export default Vue.extend({ return date.format('YYYY-MM-DD HH:mm'); }, + escapeHtml, }, }); @@ -102,7 +105,8 @@ export default Vue.extend({ @close="snapshotEvent=null" >