diff --git a/Step.Utils/languages/IT.xml b/Step.Utils/languages/IT.xml index 7be24cce..e0cc5945 100644 --- a/Step.Utils/languages/IT.xml +++ b/Step.Utils/languages/IT.xml @@ -174,7 +174,7 @@ Modifica utensile %d del gruppo %s Cerca un utensile per nome Cerca un colodo per Id - Cerca un Multitool per Id + Cerca un Multitool per nome Cerca una manina per Id Cerca una famiglia per nome Cerca un gruppo-utensili per nome diff --git a/Step.Utils/languages/en.xml b/Step.Utils/languages/en.xml index bcf3ee5d..ef4f2af2 100644 --- a/Step.Utils/languages/en.xml +++ b/Step.Utils/languages/en.xml @@ -173,7 +173,7 @@ Edit Tool no. %d of group: %s Find a tool by name Find a shank by Id - Find a Multitool by Id + Find a Multitool by name Find a mag.position by Id Find a family by name Find a tool-Group by name diff --git a/Step/wwwroot/assets/styles/base/tooling-equipment.less b/Step/wwwroot/assets/styles/base/tooling-equipment.less index d0f4ef8b..925ecdf7 100644 --- a/Step/wwwroot/assets/styles/base/tooling-equipment.less +++ b/Step/wwwroot/assets/styles/base/tooling-equipment.less @@ -195,7 +195,7 @@ } } -.tooling-families-container, .tooling-shanks-container, .tooling-magpos-container{ +.tooling-families-container, .tooling-magpos-container{ .text-body div + div{ margin-top: 11px; diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css index 1b83a0db..38536b2e 100644 --- a/Step/wwwroot/assets/styles/style.css +++ b/Step/wwwroot/assets/styles/style.css @@ -7208,7 +7208,6 @@ footer .container button.big:before { background-image: none; } .tooling-families-container .text-body div + div, -.tooling-shanks-container .text-body div + div, .tooling-magpos-container .text-body div + div { margin-top: 11px; } diff --git a/Step/wwwroot/src/components/tooling-shanks.ts b/Step/wwwroot/src/components/tooling-shanks.ts index 9f994954..180695f7 100644 --- a/Step/wwwroot/src/components/tooling-shanks.ts +++ b/Step/wwwroot/src/components/tooling-shanks.ts @@ -81,6 +81,7 @@ export default class toolingShanks extends Vue { e.preventDefault(); }); } + async updated() { $('.tab-box-scroll').mousewheel(function (e, delta) { this.scrollLeft -= (delta * 40); @@ -93,6 +94,15 @@ export default class toolingShanks extends Vue { this.disableList = true; } + public checkChildsToolsenabled() { + if(!this.selectedTool || this.selectedTool.childsTools.length < this.selectedTool.maxChilds){ + this.enableAddChildsTools = true; + } + else{ + this.enableAddChildsTools = false; + } + } + public availablePosition(pos) { return !this.selectedTool.childsTools.find( function (obj){ @@ -144,12 +154,7 @@ export default class toolingShanks extends Vue { this.shankConfiguration = (this.$store.state as AppModel).tooling.shankConfiguration; this.childToolsShank = (this.$store.state as AppModel).tooling.childToolsShank; this.enableModify = false; - if(this.selectedTool.childsTools.length < this.maxToolsPerMultitools){ - this.enableAddChildsTools = false; - } - else{ - this.enableAddChildsTools = true; - } + this.checkChildsToolsenabled(); } @@ -227,7 +232,7 @@ export default class toolingShanks extends Vue { } } - + this.enableAddToolToShank = false; this.enableModify = false; this.disableList = false; } @@ -273,6 +278,7 @@ export default class toolingShanks extends Vue { } } this.disableList = false; + this.checkChildsToolsenabled(); }) // new ToolingService().SetEdgeData(tool,model).then(response => { // this.toolsConfiguration = (this.$store.state as AppModel).tooling.toolsConfiguration; @@ -292,6 +298,8 @@ export default class toolingShanks extends Vue { this.enableModify = false; this.enableEquipment = false; this.selectedEquipment = null; + this.checkChildsToolsenabled(); + }) }, null); // new ToolingService().SetEdgeData(tool,model).then(response => { diff --git a/Step/wwwroot/src/components/tooling-shanks.vue b/Step/wwwroot/src/components/tooling-shanks.vue index f78b2808..14e84288 100644 --- a/Step/wwwroot/src/components/tooling-shanks.vue +++ b/Step/wwwroot/src/components/tooling-shanks.vue @@ -20,8 +20,11 @@
- @@ -39,10 +42,10 @@
-
+
@@ -76,11 +79,11 @@
- - + + - +