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

Cannot display specific error messages from nuxeo-operation-button

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.3
    • Component/s: UI
    • Release Notes Description:
      Hide

      Added errorLabel property to nuxeo-operation-button, which allows a custom label to be displayed when an error occurs. The error is passed as a parameter to the translation function, so that the original error message can be displayed inside the custom error label. See NXP-26329 for a concrete example.

      Show
      Added errorLabel property to nuxeo-operation-button , which allows a custom label to be displayed when an error occurs. The error is passed as a parameter to the translation function, so that the original error message can be displayed inside the custom error label. See NXP-26329 for a concrete example.
    • Tags:
    • Backlog priority:
      950
    • Sprint:
      nxGang Sprint 10.10.2
    • Story Points:
      1

      Description

      When using nuxeo-operation-button,
      if the response from the operation has not a 200 HTTP status,
      then the displayed error message is simply "Error",
      whereas we would need it to be the raised Exception original message.

      See:
      https://github.com/nuxeo/nuxeo-ui-elements/blob/master/widgets/nuxeo-operation-button.html#L127
      https://github.com/nuxeo/nuxeo-elements/blob/master/nuxeo-operation.html#L188

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                7 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 45 minutes
                  45m