@@ -138,28 +138,36 @@ const WorkgroupNodeGrading = {
138138 </h3>
139139 <ng-content ng-switch="::component.type">
140140 {{latestComponentState = $ctrl.getLatestComponentStateByWorkgroupIdAndComponentId($ctrl.workgroupId, component.id); ""}}
141- <div ng-switch-when="MultipleChoice|OpenResponse" ng-switch-when-separator="|" class="component__content" layout="row" layout-wrap>
141+ <div ng-switch-when="Match| MultipleChoice|OpenResponse" ng-switch-when-separator="|" class="component__content" layout="row" layout-wrap>
142142 <div flex="100" flex-gt-sm="66" layout="column" class="component--grading__response">
143- <multiple-choice-grading
144- ng-if="component.type === 'MultipleChoice'"
145- node-id="{{::$ctrl.nodeId}}"
146- component-id="{{::component.id}}"
147- component-state="{{latestComponentState}}">
148- </multiple-choice-grading>
149- <open-response-grading
150- ng-if="component.type === 'OpenResponse'"
151- node-id="{{::$ctrl.nodeId}}"
152- component-id="{{::component.id}}"
153- component-state="{{latestComponentState}}">
154- </open-response-grading>
155- <span flex></span>
156- <component-revisions-info node-id="::$ctrl.nodeId"
157- component-id="::component.id"
158- from-workgroup-id="::$ctrl.teacherWorkgroupId"
159- to-workgroup-id="::$ctrl.workgroupId"
160- component-state="latestComponentState"
161- active='true'>
162- </component-revisions-info>
143+ <ng-content ng-if="latestComponentState != null && latestComponentState !== ''">
144+ <match-grading
145+ ng-if="component.type === 'Match'"
146+ node-id="{{::$ctrl.nodeId}}"
147+ component-id="{{::component.id}}"
148+ component-state="{{latestComponentState}}">
149+ </match-grading>
150+ <multiple-choice-grading
151+ ng-if="component.type === 'MultipleChoice'"
152+ node-id="{{::$ctrl.nodeId}}"
153+ component-id="{{::component.id}}"
154+ component-state="{{latestComponentState}}">
155+ </multiple-choice-grading>
156+ <open-response-grading
157+ ng-if="component.type === 'OpenResponse'"
158+ node-id="{{::$ctrl.nodeId}}"
159+ component-id="{{::component.id}}"
160+ component-state="{{latestComponentState}}">
161+ </open-response-grading>
162+ <span flex></span>
163+ <component-revisions-info node-id="::$ctrl.nodeId"
164+ component-id="::component.id"
165+ from-workgroup-id="::$ctrl.teacherWorkgroupId"
166+ to-workgroup-id="::$ctrl.workgroupId"
167+ component-state="latestComponentState"
168+ active='true'>
169+ </component-revisions-info>
170+ </ng-content>
163171 </div>
164172 <div flex="100" flex-gt-sm="33" class="component--grading__annotations">
165173 <component-grading node-id="::$ctrl.nodeId"
0 commit comments