educoreapp2 1.0.37 → 1.0.39

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.
@@ -20,6 +20,7 @@ class BaseForm extends _react.Component {
20
20
  this.handle2();
21
21
  });
22
22
  this.props = props;
23
+ this.extraButt = props.extraButt;
23
24
  this.className = !_educoreapp.Tools.empty(props.className) ? props.className : "row";
24
25
  this.module = props.module;
25
26
  this.act = props.act;
@@ -94,9 +95,16 @@ class BaseForm extends _react.Component {
94
95
  console.log("XxxiiiixXX3eeee", ee);
95
96
  });
96
97
  }
98
+ submit() {
99
+ this.handle2();
100
+ }
97
101
  render() {
98
102
  let error = null;
99
103
  let lab1 = this.props.lab1;
104
+ let extraButt = !_educoreapp.Tools.empty(this.extraButt) ? this.extraButt : /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
105
+ color: "primary",
106
+ type: "submit"
107
+ }, lab1);
100
108
  if (_educoreapp.Tools.empty(lab1)) {
101
109
  lab1 = "Login";
102
110
  }
@@ -105,10 +113,7 @@ class BaseForm extends _react.Component {
105
113
  onSubmit: this.handleSubmit
106
114
  }, error && /*#__PURE__*/_react.default.createElement(_reactstrap.Alert, {
107
115
  color: "danger"
108
- }, error), this.props.children, /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
109
- color: "primary",
110
- type: "submit"
111
- }, lab1));
116
+ }, error), this.props.children, extraButt);
112
117
  }
113
118
  }
114
119
  var _default = exports.default = BaseForm;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "educoreapp2",
3
3
  "private": false,
4
- "version": "1.0.37",
4
+ "version": "1.0.39",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "files": [