diff --git a/Step/wwwroot/src/components/depot.ts b/Step/wwwroot/src/components/depot.ts index af926e66..7de05495 100644 --- a/Step/wwwroot/src/components/depot.ts +++ b/Step/wwwroot/src/components/depot.ts @@ -23,6 +23,12 @@ export default class depot extends Vue { public get availableMultiTools(): server.MultiTools[] { return (this.$store.state as AppModel).depot.availableMultiTool; } public get availableTools(): server.Tools[] { return (this.$store.state as AppModel).depot.availableTool; } + public magazines: server.MagazineModel[] = (this.$store.state as AppModel).tooling.magazines; + + public enableModify: any = false; + + + // Ottengo il tool alla posizione corrente public toolAtPosition(position): server.DepotModel { @@ -52,6 +58,12 @@ export default class depot extends Vue { toggleEdit() { this.editable = !this.editable; + if(this.editable){ + this.enableModify = true; + } + else{ + this.enableModify = false; + } } public returnChildId(elem) { @@ -69,4 +81,22 @@ export default class depot extends Vue { public StartToolingWizard() { depotBL.showToolingWizard(); } + public disableFastButton(){ + if(this.enableModify){ + return true; + } + else{ + return false; + } + } + public changeMagazine(){ + // new DepotService().GetMagazine(this.$route.params.id); + debugger + this.magazines; + for(let i in this.magazines){ + if(this.magazines[i].id == this.$route.params.id){ + + } + } + } } diff --git a/Step/wwwroot/src/components/depot.vue b/Step/wwwroot/src/components/depot.vue index 1e8ab272..17534645 100644 --- a/Step/wwwroot/src/components/depot.vue +++ b/Step/wwwroot/src/components/depot.vue @@ -28,9 +28,9 @@