Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-147

document-updated/refresh does not work for Tasks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 2.4.39, 3.1.0
    • Component/s: UI
    • Release Notes Summary:
      The Task view is refreshed when a task is completed.
    • Backlog priority:
      700
    • Sprint:
      UI - 2021-04

      Description

      If the tasks dashboard or anything on it is customized, and the customization fires the 'document-updated' event, the refresh function does not redirect properly.

      A good way to solve this would be to add another 'else if' to the refresh function:
      https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-app.html#L612

      that checks if 'this' is a task, and loads the task page (same way it would load 'browse' for regular docs)

      As an example of how this would work, add a button to 'nuxeo-tasks' or 'nuxeo-document-task':

      <paper-button name="updateDocument" noink="" class="primary" on-tap="_updateDocument">fire document-updated event</paper-button>
      

      with this js function

            _updateDocument: function() {
              this.fire('document-updated');
            },
      

      Clicking the button should refresh the tasks page, not redirect to home.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d