@osovitny/anatoly 2.14.54 → 2.14.55

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.
@@ -2635,11 +2635,14 @@ class BaseComponent {
2635
2635
  this.dataLoaded = false;
2636
2636
  this.dataFound = false;
2637
2637
  }
2638
- getQSId() {
2639
- let id = Utils.getValueByNameInQS("id");
2640
- if (typeof id === "undefined" || id == "")
2638
+ getEntityId() {
2639
+ return this.getValueByNameInQS("id");
2640
+ }
2641
+ getValueByNameInQS(name) {
2642
+ let value = Utils.getValueByNameInQS(name);
2643
+ if (typeof value === "undefined" || value == "")
2641
2644
  return null;
2642
- return id;
2645
+ return value;
2643
2646
  }
2644
2647
  ngOnDestroy() {
2645
2648
  this.subs.unsubscribe();
@@ -2678,9 +2681,6 @@ class BaseEditComponent extends BaseComponent {
2678
2681
  let id = Utils.getValueByNameInQS("id");
2679
2682
  return typeof id === "undefined" || id == "";
2680
2683
  }
2681
- getEntityId() {
2682
- return this.getQSId();
2683
- }
2684
2684
  isControlValid(name, frmGroup = null) {
2685
2685
  return !this.isControlInvalid(name, frmGroup);
2686
2686
  }