diff --git a/frontend_vue/src/components/HistoryToken.vue b/frontend_vue/src/components/HistoryToken.vue index 18396313d..1ad9c464d 100644 --- a/frontend_vue/src/components/HistoryToken.vue +++ b/frontend_vue/src/components/HistoryToken.vue @@ -144,11 +144,13 @@ async function fetchTokenHistoryData() { } async function handleSelectAlert(incident: HitsType) { - await addViewTransition(() => (selectedAlert.value = incident)); - const container = document.getElementById('incident_detail'); + await addViewTransition(() => { + selectedAlert.value = incident + const container = document.getElementById('incident_detail'); container ? container.scrollTo({ top: 0, behavior: 'smooth' }) : window.scrollTo({ top: 0, behavior: 'smooth' }); + }); } diff --git a/frontend_vue/src/components/constants.ts b/frontend_vue/src/components/constants.ts index 3c97e9da1..1576f9679 100644 --- a/frontend_vue/src/components/constants.ts +++ b/frontend_vue/src/components/constants.ts @@ -86,6 +86,7 @@ export const INCIDENT_DETAIL_CUSTOM_LABELS = { last_used: 'Key Last Used', src_ip: 'Source IP', loc: 'Location', + eventName: 'Event Name', }; export const TOKEN_CATEGORY = { diff --git a/frontend_vue/src/components/tokens/signed_exe/GenerateTokenForm.vue b/frontend_vue/src/components/tokens/signed_exe/GenerateTokenForm.vue index 6e82b25d4..6a4c87c23 100644 --- a/frontend_vue/src/components/tokens/signed_exe/GenerateTokenForm.vue +++ b/frontend_vue/src/components/tokens/signed_exe/GenerateTokenForm.vue @@ -3,7 +3,6 @@ Upload your file Action diff --git a/frontend_vue/src/components/tokens/types.ts b/frontend_vue/src/components/tokens/types.ts index b0e2422f8..b4271b4c2 100644 --- a/frontend_vue/src/components/tokens/types.ts +++ b/frontend_vue/src/components/tokens/types.ts @@ -160,8 +160,9 @@ export type GeoInfo = { export type RequestHeaders = Record; export type AWSLogDataType = { - last_used: Date | number | null; + last_used: string | null; service_used: string; + eventName: string | null; }; export type AdditionalInfoType = { diff --git a/frontend_vue/src/components/tokens/web_image/GenerateTokenForm.vue b/frontend_vue/src/components/tokens/web_image/GenerateTokenForm.vue index c134add73..fcf225dea 100644 --- a/frontend_vue/src/components/tokens/web_image/GenerateTokenForm.vue +++ b/frontend_vue/src/components/tokens/web_image/GenerateTokenForm.vue @@ -3,7 +3,6 @@ Upload your image -
+