Project

General

Profile

Actions

Bug #26441

closed

Default value for date column not set to React component

Added by Ondřej Ezr about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Difficulty:
trivial
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

We are calling the mounter in application_helper using:

# NOTE the default: _('N/A') part
mount_react_component(component, "##{date_id}", { date: time.try(:iso8601), default: _('N/A'), seconds: seconds }.to_json, { :flatten_data => true }) 

But all the components are expecting `defaultValue` instead.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #21312: Foreman should provide react components for formatting datesClosedTomáš StrachotaActions
Actions #1

Updated by The Foreman Bot about 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6617 added
Actions #2

Updated by Ondřej Ezr about 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Tomer Brisker about 5 years ago

Actions #4

Updated by Tomer Brisker about 5 years ago

  • Related to Feature #21312: Foreman should provide react components for formatting dates added
Actions #5

Updated by Tomer Brisker about 5 years ago

  • Related to deleted (Feature #19047: Unify the way how we display dates)
Actions #6

Updated by Tomer Brisker about 5 years ago

  • Fixed in Releases 1.21.1, 1.22.0 added
Actions

Also available in: Atom PDF