ato-water-lib 0.0.31 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -4724,7 +4724,7 @@ class AtoDefaultGojsEditor {
4724
4724
  var _a, _b, _c;
4725
4725
  self.openActionMenu();
4726
4726
  const filteredActions = _.filter((_c = (_b = (_a = obj.part) === null || _a === void 0 ? void 0 : _a['ob']) === null || _b === void 0 ? void 0 : _b.actions) !== null && _c !== void 0 ? _c : actions, (action) => {
4727
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4727
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
4728
4728
  // Filter Insight button
4729
4729
  if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT) {
4730
4730
  return !!((_b = (_a = obj.part) === null || _a === void 0 ? void 0 : _a['ob']) === null || _b === void 0 ? void 0 : _b.id);
@@ -4736,6 +4736,11 @@ class AtoDefaultGojsEditor {
4736
4736
  ((_l = (_k = obj.part) === null || _k === void 0 ? void 0 : _k['ob']) === null || _l === void 0 ? void 0 : _l.topologyType) !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL) {
4737
4737
  return false;
4738
4738
  }
4739
+ if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW &&
4740
+ self.plantSatus === ATO_EPlantType.BASIC_PLANT &&
4741
+ ((_o = (_m = obj.part) === null || _m === void 0 ? void 0 : _m.data) === null || _o === void 0 ? void 0 : _o.type) === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
4742
+ return false;
4743
+ }
4739
4744
  return true;
4740
4745
  }).map((e) => {
4741
4746
  var _a, _b, _c, _d;