@smartbit4all/ng-client 3.3.95 → 3.3.96
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.
- package/esm2020/lib/smart-table/tables/table.mjs +6 -3
- package/fesm2015/smartbit4all-ng-client.mjs +11 -8
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +5 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.96.tgz +0 -0
- package/smartbit4all-ng-client-3.3.95.tgz +0 -0
|
@@ -6148,7 +6148,10 @@ class Table {
|
|
|
6148
6148
|
return resource.style ? resource.style : {};
|
|
6149
6149
|
}
|
|
6150
6150
|
openDefaultActionsMenu(row) {
|
|
6151
|
-
let actionCodesFromRow = row?.actions
|
|
6151
|
+
let actionCodesFromRow = row?.actions?.map((action) => action.code);
|
|
6152
|
+
if (!actionCodesFromRow) {
|
|
6153
|
+
return;
|
|
6154
|
+
}
|
|
6152
6155
|
let filteredActions = this.smartTable.defaultActions?.filter((action) => actionCodesFromRow.includes(action.code));
|
|
6153
6156
|
if (filteredActions && filteredActions.length > 0) {
|
|
6154
6157
|
if (filteredActions.length === 1) {
|
|
@@ -6164,7 +6167,7 @@ class Table {
|
|
|
6164
6167
|
}
|
|
6165
6168
|
}
|
|
6166
6169
|
getDefaultActionsForRow(element) {
|
|
6167
|
-
let actionCodesFromRow = element?.actions
|
|
6170
|
+
let actionCodesFromRow = element?.actions?.map((action) => action.code);
|
|
6168
6171
|
if (actionCodesFromRow) {
|
|
6169
6172
|
return this.smartTable.defaultActions?.filter((action) => actionCodesFromRow.includes(action.code));
|
|
6170
6173
|
}
|