Handle empty JS fields in client-web-fragment xml

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Plugin Development
    • None
    • 0

      <client-web-panel key="do-not-merge-panel" name="sdafasdfasdf" location="stash.pull-request.related-entities" weight="10">
          <client-context-provider></client-context-provider>
          <view>com.mycompany.todo.checkbox</view>
          <dependency>com.mycompany.todo:do-not-merge-static</dependency>
      </client-web-panel>
      

      generates such js:

      WebFragments.addWebPanelDescriptor({'pluginKey':'com.mycompany.todo','key':'do-not-merge-panel','moduleKey':'do-not-merge-panel','completeModuleKey':'com.mycompany.todo:do-not-merge-panel','weight':10.0,'context-provider':function(ctx) { return WebFragments._getValue((), ctx); },'location':'stash.pull-request.related-entities','view':function(ctx) { return WebFragments._getValue((com.mycompany.todo.checkbox), ctx); }});
      

      with ) symbol not matching

              Assignee:
              Unassigned
              Reporter:
              Igor Slinko
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: