Modal works locally but is not refreshed after provisionning

#1

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 }}
      </div>
    {{ end }}
  </div>

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?

0 Likes

#2

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"
0 Likes

closed #3
0 Likes