Merge branch 'develop' of https://bitbucket.org/ncarminati/cms_step into develop

This commit is contained in:
Alessandro Francia
2018-05-30 12:27:18 +02:00
@@ -101,7 +101,7 @@ export default class toolingEquipment extends Vue {
this.toolsConfiguration = (this.$store.state as AppModel).tooling.toolsConfiguration;
this.edgeConfiguration = (this.$store.state as AppModel).tooling.edgesConfiguration;
this.selectedTool = item;
this.copySelectedTool = JSON.stringify(item);
this.copySelectedTool = Object.assign({}, item);
this.enableParameters = true;
this.enableEquipment = false;
this.selectedEquipment = null;
@@ -194,11 +194,11 @@ export default class toolingEquipment extends Vue {
}
public cancel = function () {
this.selectedTool = JSON.parse(this.copySelectedTool);
if(this.selectedTool.id == null || this.selectedTool.id == 0){
this.selectedTool = null;
}
else{
this.selectedTool = this.copySelectedTool;
for (let l in this.selectedTool.edgesData) {
if (this.selectedTool.edgesData[l].id <= 0) {
this.selectedTool.edgesData.splice(l, 1);