Added OriginPosition
Fixed fanuc TT & Minorfixes
This commit is contained in:
@@ -80,11 +80,15 @@ namespace Step
|
||||
if (functionAccess.WriteLevelMin > machineUser.Role.Level)
|
||||
return false; // Not authorized
|
||||
}
|
||||
|
||||
// Check if functionality is enabled by PLC
|
||||
var functionalityIsEnabled = LastRuntimeFunctionality.Where(x => x.Name == functionName).FirstOrDefault();
|
||||
if (functionalityIsEnabled == null || functionalityIsEnabled.Enabled == false)
|
||||
return false;
|
||||
|
||||
// Check if PLC bit exists
|
||||
if(functionAccess.PlcId != 0)
|
||||
{
|
||||
// Check if functionality is enabled by PLC
|
||||
var functionalityIsEnabled = LastRuntimeFunctionality.Where(x => x.Name == functionName).FirstOrDefault();
|
||||
if (functionalityIsEnabled == null || functionalityIsEnabled.Enabled == false)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
return false;
|
||||
|
||||
@@ -115,8 +115,7 @@ export class Hub {
|
||||
private static activeProgramData(data) {
|
||||
if(data.path != ""){
|
||||
fileService.getActiveFileInfo(data.path).then(r => {
|
||||
var image = r.previewBase64;
|
||||
processModelActions.setCurrentProgramImage(store, image);
|
||||
processModelActions.setCurrentProgramImage(store, r.image);
|
||||
processModelActions.setCurrentProgramName(store, r.name);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user