Making WordPress.org


Ignore:
Timestamp:
12/17/2018 07:34:12 AM (7 years ago)
Author:
vedjain
Message:

WCPT Application Tracker: Multiple changes in rendering of application status report, see desc.

  1. Add customRender option to allow specifying different render logic in application tracker report.
  2. Send timestamp for lastUpdated column instead of humanize_time_diff. Move logic for humanize_time_diff to frontend, because its a very simple logic, and would make a easy fix for #2501
  3. Use customRender option to display X time ago instead of absolute timestamp.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/javascript/tracker/source/components/filterable-table/filterable-table.jsx

    r3814 r7976  
    1010        initialSortField : PropTypes.string.isRequired,
    1111        columns          : PropTypes.object,
     12        customRender     : PropTypes.object,
    1213    },
    1314
     
    6364            'sortOrder'   : this.state.sortOrder,
    6465            'sortField'   : this.state.sortField,
     66            'sortFunction': this.props.sortFunction
    6567        } );
    6668
     
    7880                    sortOrder       = { this.state.sortOrder }
    7981                    handleSortEvent = { this.handleSortEvent }
     82                    customRender    = { this.props.customRender }
    8083                />
    8184            </div>
Note: See TracChangeset for help on using the changeset viewer.