Skip to content

feat(cve5): default new timeline events to the current time - #305

Open
Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/182-timeline-default
Open

Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/182-timeline-default

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown

Summary

A newly added timeline row now starts with the current time instead of an empty timestamp. Existing timestamps are never overwritten.

Changes

  • Add setDefaultTimelineTime in custom/cve5/script.js
  • Attach it to the editor addRow event after each loadJSON in custom/cve5/edit.pug
  • Add unittest/timeline.js and include it in the unittest script

Testing

  • npm run unittest: passes
  • unittest/timeline.js fails without the helper
  • Template compiles

Closes #182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

default Event timestamp to today?

1 participant