Skip to content

Commit

Permalink
Fix permalink field in Events tab in Virustotal (#6839)
Browse files Browse the repository at this point in the history
* Changed permalink render in Events tab in Virustotal

* Considered case that permalink was undefined and CHANGELOG added
  • Loading branch information
jbiset authored Jul 19, 2024
1 parent eb91b82 commit aefa69a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Generate URL with predefined filters [#6745](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6745)
- Migrated AngularJS routing to ReactJS [#6689](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6689) [#6775](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6775) [#6790](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6790
- Improvement of the filter management system by implementing new standard modules [#6534](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6534) [#6772](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6772)
- Changed permalink field in the Events tab table in Virustotal to show an external link [#6839](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6839)

### Fixed

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { tDataGridColumn } from '../../../common/data-grid';
import React from 'react';
import { EuiLink } from '@elastic/eui';

export const virustotalColumns: tDataGridColumn[] = [
{
Expand All @@ -12,6 +14,17 @@ export const virustotalColumns: tDataGridColumn[] = [
},
{
id: 'data.virustotal.permalink',
render: value => {
if (!value) {
return '-';
} else {
return (
<EuiLink href={value} target='_blank' external>
{value}
</EuiLink>
);
}
},
},
{
id: 'data.virustotal.malicious',
Expand Down

0 comments on commit aefa69a

Please sign in to comment.