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

nuxeo-uploader-behavior element should not rely on connection id

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1, 2.1.3
    • Component/s: UI

      Description

      See PR.

      Just a simple fix on nuxeo-uploader-behavior

      if(!this.connection) {
         throw 'Missing connection';
       }
      

      Property connection was not used and relying on an element id to use connection seems to limit the use of behavior.

      For example, in nuxeo-web-ui, element nuxeo-dropzone.html the property is set in ready function :

      ready: function() {
        this.connection = this.$.nx;
        ...
      }
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 30 minutes
                30m