Skip to content

Commit ad57347

Browse files
committed
Added Depends on
1 parent 2574d94 commit ad57347

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/app/component/mapping/mapping.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
102102
</table>
103103

104-
<table id="excel-table" class="hide">
104+
<table id="excel-table" >
105105
<tr>
106106
<th>Dimension</th>
107107
<th>Sub Dimension</th>
@@ -113,6 +113,7 @@
113113
<th>Resources</th>
114114
<th>Time</th>
115115
<th>Usefulness</th>
116+
<th>Depends On</th>
116117
<th>SAMM</th>
117118
<th>ISO</th>
118119
</tr>
@@ -127,6 +128,7 @@
127128
<td>{{item.resources}}</td>
128129
<td>{{item.time}}</td>
129130
<td>{{item.usefulness}}</td>
131+
<td>{{item.dependsOn}}</td>
130132
<td>{{item.samm2}}</td>
131133
<td>{{item.ISO}}</td>
132134
</tr>

src/app/component/mapping/mapping.component.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export interface MappingElementSortedByISO {
3838
resources:string;
3939
time:string;
4040
usefulness:string;
41+
dependsOn:string[]
4142
}
4243

4344

@@ -220,9 +221,15 @@ export class MappingComponent implements OnInit {
220221
catch{
221222
var CurrentUsefulness:string=""
222223
}
224+
try{
225+
var CurrentDependsOn:string[]=this.YamlObject[dim][subDim][task]['dependsOn']
226+
}
227+
catch{
228+
var CurrentDependsOn:string[]=[]
229+
}
223230
this.temporaryMappingElement={"dimension":dim,"subDimension":subDim,"taskName":task,"ISO":"","samm2":SAMMArray,
224231
description:CurrentDescription,risk:CurrentRisk,measure:CurrentMeasure,knowledge:CurrentKnowledge,time:CurrentTime,
225-
resources:CurrentResources,usefulness:CurrentUsefulness}
232+
resources:CurrentResources,usefulness:CurrentUsefulness,dependsOn:CurrentDependsOn}
226233
if(ISOArray.length==0){
227234
this.allMappingDataSortedByISO.push(this.temporaryMappingElement)
228235
if(this.YamlObject[dim][subDim][task]['isImplemented']){

0 commit comments

Comments
 (0)