@osovitny/anatoly 2.15.3 → 2.15.4
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/core/utils.mjs +7 -1
- package/esm2020/lib/ui/components/base/base-edit.component.mjs +2 -3
- package/fesm2015/osovitny-anatoly.mjs +7 -2
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +7 -2
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/utils.d.ts +1 -0
- package/package.json +4 -2
|
@@ -1924,6 +1924,12 @@ class Subs {
|
|
|
1924
1924
|
</file>
|
|
1925
1925
|
*/
|
|
1926
1926
|
class Utils {
|
|
1927
|
+
static idExistsInQS() {
|
|
1928
|
+
let id = Utils.getValueByNameInQS("id");
|
|
1929
|
+
if (id)
|
|
1930
|
+
return true;
|
|
1931
|
+
return false;
|
|
1932
|
+
}
|
|
1927
1933
|
static getValueByNameInQS(name) {
|
|
1928
1934
|
return Utils.getValueByName(location.search, name);
|
|
1929
1935
|
}
|
|
@@ -3300,8 +3306,7 @@ class BaseEditComponent extends BaseComponent {
|
|
|
3300
3306
|
this.formSubmitted = false;
|
|
3301
3307
|
}
|
|
3302
3308
|
isActionAdding() {
|
|
3303
|
-
|
|
3304
|
-
return typeof id === "undefined" || id == "";
|
|
3309
|
+
return Utils.idExistsInQS();
|
|
3305
3310
|
}
|
|
3306
3311
|
isControlValid(name, frmGroup = null) {
|
|
3307
3312
|
return !this.isControlInvalid(name, frmGroup);
|