Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1820

When EE gadgets fail to load, error message not returned as expected.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 2.5.0-beta2
    • 2.5.0-beta2
    • Javascript
    • None

    Description

      When EE gadgets fail to load, say the EE gadget url is invalid, the expected callback param should contain a error property telling user about the failure.
      This is aligned with the callback param with the common container navigateGadget API call.

      While looking into current EE implementation, the callback is having two params, site and the full result of preload.

      function ccCallback(gadgetInfo) {
      if (gadgetInfo.error)

      { console.log("Got error!"); // can't get here... }

      else

      { console.log("Success!"); }

      }

      var eeRenderParams = {};

      var eeDataModel = {
      gadget : "<invalid gadget url>",
      context : {}
      };

      cc.ee.navigate(
      element,
      eeDataModel,
      eeRenderParams,
      ccCallback
      );

      Attachments

        1. 40052.patch
          0.7 kB
          Marshall Shi

        Activity

          People

            Unassigned Unassigned
            marshall_601 Marshall Shi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified