Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Fix delete event artifact data GUI #3830

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions gui/velociraptor/src/components/events/delete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import VeloTimestamp from "../utils/time.jsx";
export default class DeleteTimelineRanges extends Component {
static propTypes = {
client_id: PropTypes.string,
start_time: PropTypes.number,
end_time: PropTypes.number,
start_time: PropTypes.object,
end_time: PropTypes.object,
onClose: PropTypes.func.isRequired,
artifact: PropTypes.string,
}
Expand All @@ -40,6 +40,9 @@ export default class DeleteTimelineRanges extends Component {
}

render() {
let start_time = moment(this.props.start_time).format();
let end_time = moment(this.props.end_time).format();

return (
<>
<Modal show={true}
Expand All @@ -55,8 +58,8 @@ export default class DeleteTimelineRanges extends Component {
{T("Are you sure you want to delete all logs within the time range?")}

<div>
<VeloTimestamp iso={this.props.start_time}/> -
<VeloTimestamp iso={this.props.end_time}/>
<VeloTimestamp iso={start_time}/> -
<VeloTimestamp iso={end_time}/>
</div>
</Modal.Body>

Expand Down
Loading