ato-water-lib 0.0.32 → 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);
@@ -4737,7 +4737,8 @@ class AtoDefaultGojsEditor {
4737
4737
  return false;
4738
4738
  }
4739
4739
  if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW &&
4740
- self.plantSatus === ATO_EPlantType.BASIC_PLANT) {
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) {
4741
4742
  return false;
4742
4743
  }
4743
4744
  return true;