Skip to content

Commit

Permalink
Fix #6319 - all size fields enabled for cee ell jay
Browse files Browse the repository at this point in the history
  • Loading branch information
git-user committed Sep 19, 2023
1 parent 05b1678 commit 346cfa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sirepo/package_data/static/js/radia.js
Original file line number Diff line number Diff line change
Expand Up @@ -3199,6 +3199,7 @@ SIREPO.viewLogic('objectShapeView', function(appState, panelState, radiaService,

SIREPO.viewLogic('geomObjectView', function(appState, panelState, radiaService, requestSender, $rootScope, $scope) {

const builtinExtruded = ['cee', 'ell', 'jay'];
const ctl = angular.element($('div[data-ng-controller]').eq(0)).controller('ngController');
let editedModels = [];
const materialFields = ['geomObject.magnetization', 'geomObject.material'];
Expand Down Expand Up @@ -3382,7 +3383,7 @@ SIREPO.viewLogic('geomObjectView', function(appState, panelState, radiaService,
return;
}

if (! appState.isSubclass(modelType, 'extrudedObject')) {
if (! appState.isSubclass(modelType, 'extrudedObject') || builtinExtruded.includes(modelType)) {
return;
}

Expand Down

0 comments on commit 346cfa1

Please sign in to comment.