@yomotech/view-toolkit 0.0.70 → 0.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1894,11 +1894,15 @@ class CardComponent {
1894
1894
  this.onPageChange.emit(page);
1895
1895
  }
1896
1896
  invokeOnCardHeader(element) {
1897
- this.cardHeaderButtonClick.emit(element);
1897
+ if (element.option && element.option.innerAction === "saveAll") {
1898
+ this.d4_SaveAll();
1899
+ }
1900
+ else {
1901
+ this.cardHeaderButtonClick.emit(element);
1902
+ }
1898
1903
  }
1899
1904
  invokeOnCardFooter(element) {
1900
1905
  // this.cardHeaderButtonClick.emit(element);
1901
- this.d4_SaveAll();
1902
1906
  }
1903
1907
  async invokeButtonClick(layout, record, recordIndex) {
1904
1908
  if (layout?.option?.action === 'delete' && layout?.option?.storageType == 'localstorage') {
@@ -1967,7 +1971,7 @@ class CardComponent {
1967
1971
  }
1968
1972
  async saveToDb(orders, orderIndex, data_url, deleteAll = false) {
1969
1973
  this.safeUpdate(() => (this.isLoading = true));
1970
- const token = this.oauthService.getAccessToken(); // whatever you have
1974
+ const token = this.oauthService.getAccessToken();
1971
1975
  const logined = await this.utilityService.getLocalStorage('loginedUser');
1972
1976
  const keycloakInfo = await this.utilityService.getLocalStorage('KeycloakInfo');
1973
1977
  let saveobject = {