camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.49k stars 477 forks source link

Add fallback for displaying date in catalog #1995

Closed philippfromme closed 3 years ago

philippfromme commented 3 years ago

Is your feature request related to a problem? Please describe.

The Cawemo team is going to remove the updated property from the metadata property of templates. This will break the catalog unless we change the current implementation.

Describe the solution you'd like

My suggestion is to fall back to the created property if there is no updated property so we always display a date.

Describe alternatives you've considered

Always use the created property to display dates.

Additional context

Current implementation: https://github.com/camunda/camunda-modeler/blob/v4.3.0/client/src/plugins/element-templates-modal/components/ElementTemplatesModalView.js#L417

pinussilvestrus commented 3 years ago

Closed via d796cd6d4e54b412aeeff73178a4ef301a243dc8 (correct me if I am wrong)