Skip to content
Snippets Groups Projects
Commit a5b414da authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

check for cells in assembly before moving to cam

parent cd6f1399
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ hr {
.inlineWarning {
background-color: rgba(255,0,0,0.15);
padding: 10px 15px 15px 15px;
padding: 15px;
margin: 0 0 20px 0;
}
......
......@@ -91,7 +91,7 @@ define(['underscore', 'three', 'backbone', 'appState', 'latticeCAM', 'threeModel
_calculateNumMaterials: function(){//todo calc length of gik cells as separate material types
this.set("allCAMMaterialTypes", materials.getChildCellTypes(lattice.sparseCells, true));
this.set("allCAMMaterialTypes", materials.getChildCellTypes(lattice.sparseCells, true) || []);
},
......
<% if (numCells == 0){ %>
<div class="inlineWarning">No cells in assembly!</div>
<% } %>
Machine: &nbsp;&nbsp;
<div class="btn-group">
<button data-toggle="dropdown" class="btn dropdown-toggle" type="button"><%= allMachines[machineName].name %><span class="caret"></span></button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment