Other fixes in shanks
This commit is contained in:
@@ -535,14 +535,21 @@ public isEquipmentSelected(offset){
|
||||
// Controllo se l'utensile può essere eliminato se in magazzino
|
||||
public checkIfCanDeleteTool() {
|
||||
if(this.selectedTool) {
|
||||
// Check if magazine is in magazine
|
||||
if (this.magazines.length > 0) {
|
||||
var magId = this.getToolMagPosition(this.selectedTool.shankId)
|
||||
var mag = this.magazines.find(d => d.id == magId);
|
||||
|
||||
if (mag)
|
||||
if(!this.isSiemens || this.multitoolOptionActive){
|
||||
if(this.selectedTool.shankId)
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}else{
|
||||
if (this.magazines.length > 0) {
|
||||
var magId = this.getToolMagPosition(this.selectedTool.shankId)
|
||||
var mag = this.magazines.find(d => d.id == magId);
|
||||
|
||||
if (mag)
|
||||
return true;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user