@processmaker/modeler 1.34.0 → 1.35.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/modeler",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "open-cypress": "TZ=UTC cypress open",
package/src/.DS_Store CHANGED
Binary file
@@ -230,13 +230,17 @@ export default {
230
230
  },
231
231
  mounted() {
232
232
  const childProcess = this.$root.$children[0]?.process;
233
- if (childProcess?.is_template) {
234
- const indexOfActions = this.ellipsisMenuActions.findIndex(object => {
235
- return object.value === 'save-template';
236
- });
233
+ const indexOfActions = this.ellipsisMenuActions.findIndex(object => {
234
+ return object.value === 'save-template';
235
+ });
237
236
 
237
+ if (childProcess?.is_template) {
238
238
  this.ellipsisMenuActions.splice(indexOfActions, 1);
239
239
  }
240
+
241
+ if (childProcess?.asset_type === 'PM_BLOCK') {
242
+ this.ellipsisMenuActions.splice(indexOfActions, 2);
243
+ }
240
244
  },
241
245
  };
242
246
  </script>