Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-842

Turn format methods into element properties

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: I18n

      Description

      Right now, the format methods in Nuxeo.FormatBehavior that rely on label translation are not recomputed when the locale changes, unless the page is reloaded. The current workaround is to always pass the i18n method as a dependency when calling the format method (ex.: formatDocType(type, i18n) ), but this is verbose and hard to maintain. We can turn these into properties of type Function, which will be recomputed whenever the i18n function changes, either with an observer or by using computed properties.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gbarata Gabriel Barata
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  PagerDuty