SearchKit - Fix assigning searchDisplay tab count
authorcolemanw <coleman@civicrm.org>
Sun, 3 Sep 2023 16:06:35 +0000 (12:06 -0400)
committercolemanw <coleman@civicrm.org>
Mon, 4 Sep 2023 16:20:27 +0000 (12:20 -0400)
commit2b2c130df0bee04944f7f5f1731dc4c41efa7bcb
tree457ada966bbe72b937a6a07049b0ecda325021b2
parentb7348e8e768f4f8197b30c15c66a89b77867bdd4
SearchKit - Fix assigning searchDisplay tab count

Incorectly fixed with https://github.com/civicrm/civicrm-core/pull/23759, this is the correct fix.
Enables assignment of the value (because you can't assign scalar values using one-way binding)
but avoids the $compile:nonassign error by making it optional.

See https://docs.angularjs.org/api/ng/service/#-scope-
ext/search_kit/ang/crmSearchAdmin/searchSegmentListing/crmSearchAdminSegmentListing.component.js
ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js
ext/search_kit/ang/crmSearchDisplayGrid/crmSearchDisplayGrid.component.js
ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayList.component.js
ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js