Skip to content

Commit

Permalink
for #6682 hide editor if model is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
moellep committed Feb 3, 2024
1 parent 90911bf commit a1bb8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sirepo/package_data/static/js/sirepo-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ SIREPO.app.directive('fieldEditor', function(appState, keypressService, panelSta
viewName: '=',
},
template: `
<div data-ng-class="utilities.modelFieldID(modelName, field)">
<div data-ng-if="model" data-ng-class="utilities.modelFieldID(modelName, field)">
<div data-ng-show="showLabel" data-label-with-tooltip="" class="control-label" data-ng-class="labelClass" data-label="{{ customLabel || info[0] }}" data-tooltip="{{ info[3] }}"></div>
<div data-ng-switch="info[1]">
<div data-ng-switch-when="Integer" data-ng-class="fieldClass">
Expand Down

0 comments on commit a1bb8ae

Please sign in to comment.