@kaspernj/api-maker 1.0.265 → 1.0.267
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/package.json +1 -1
- package/src/base-model.mjs +8 -2
- package/src/table/table.jsx +1 -1
package/package.json
CHANGED
package/src/base-model.mjs
CHANGED
|
@@ -716,10 +716,16 @@ export default class BaseModel {
|
|
|
716
716
|
try {
|
|
717
717
|
return await CommandsPool.addCommand(args, commandArgs)
|
|
718
718
|
} catch (error) {
|
|
719
|
-
|
|
720
|
-
|
|
719
|
+
let form
|
|
720
|
+
|
|
721
|
+
if (commandArgs.form) {
|
|
722
|
+
form = commandArgs.form
|
|
723
|
+
} else if (formOrDataObject?.nodeName == "FORM") {
|
|
724
|
+
form = formOrDataObject
|
|
721
725
|
}
|
|
722
726
|
|
|
727
|
+
if (form) BaseModel.parseValidationErrors({error, options: {form}})
|
|
728
|
+
|
|
723
729
|
throw error
|
|
724
730
|
}
|
|
725
731
|
}
|
package/src/table/table.jsx
CHANGED
|
@@ -456,7 +456,7 @@ class ApiMakerTable extends React.PureComponent {
|
|
|
456
456
|
|
|
457
457
|
return (
|
|
458
458
|
<div style={{display: "flex", justifyContent: "space-between", marginTop: "10px"}}>
|
|
459
|
-
<div>
|
|
459
|
+
<div className="showing-counts">
|
|
460
460
|
{I18n.t("js.api_maker.table.showing_from_to_out_of_total", {defaultValue, from, to, total_count: totalCount})}
|
|
461
461
|
</div>
|
|
462
462
|
<div>
|