Modal works locally but is not refreshed after provisionning


I’ve a modal that is shown when a user click on a row from a KendoGrid. This modal has the following footer template:

  <div class="modal-footer">
    {{ if buttons }}
      <div class="c3-component-form-buttons" style="text-align: right;">
        <span class="form-message" style="padding-right: 10px;"></span>
        {{ if ( isEqual(variable, "value") == false ) }}
          {{ a.btn.btn-primary.disabled({type: 'button', data-action: 'click'}) textFalse }}
        {{ end }}
        {{ if ( isEqual(variable, "value") == true ) }}
          {{ a.btn.btn-primary({type: 'button', data-action: 'click'}) textTrue }}
        {{ end }}
    {{ end }}

This seems to work locally using the c3ui-node-server, but after provision it does not work as expected!

Instead the template is not refreshed after the user click on another row that has a different value for variable!

Any idea what’s wrong?



For some weird reason not using isEqual does not work locally but works after provisioning, so the fix is:

  • replace isEqual(variable, "value") == false with variable != "value"
  • replace isEqual(variable, "value") == true with variable == "value"

closed #3