Skip to content

Commit 1a62a37

Browse files
committed
Created a teams.yaml file that will hold the team variables separately
1 parent c18ab88 commit 1a62a37

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

src/app/component/circular-heatmap/circular-heatmap.component.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ export interface cardSchema {
2525
styleUrls: ['./circular-heatmap.component.css'],
2626
})
2727
export class CircularHeatmapComponent implements OnInit {
28-
Routing: string = '/task-description';
29-
3028
maxLevelOfTasks: number = -1;
3129
showTaskCard: boolean = false;
3230
cardHeader: string = '';
@@ -60,8 +58,14 @@ export class CircularHeatmapComponent implements OnInit {
6058
this.radial_labels.push('Level ' + y);
6159
this.maxLevelOfTasks = y;
6260
}
63-
this.teamList = this.YamlObject['strings']['en']['teams'];
64-
this.teamGroups = this.YamlObject['strings']['en']['teamGroups'];
61+
});
62+
// Team Data
63+
this.yaml.setURI('./assets/YAML/teams.yaml');
64+
this.yaml.getJson().subscribe(data => {
65+
this.YamlObject = data;
66+
67+
this.teamList = this.YamlObject['teams'];
68+
this.teamGroups = this.YamlObject['teamGroups'];
6569
this.teamVisible = this.teamList;
6670
});
6771
this.yaml.setURI('./assets/YAML/generated/generated.yaml');

src/assets/YAML/meta.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ strings:
2222
description: |-
2323
ISO 27001:2022
2424
labels: ['Very Low', 'Low', 'Medium', 'High', 'Very High']
25-
teams: ['A', 'B', 'C']
26-
teamGroups:
27-
AB: ['A', 'B']
28-
BC: ['B', 'C']
29-
AC: ['A', 'C']
3025
KnowledgeLabels:
3126
[
3227
'Very Low (one discipline)',

src/assets/YAML/teams.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
#
3+
# Teams
4+
#
5+
teams: ['A', 'B', 'C']
6+
teamGroups:
7+
AB: ['A', 'B']
8+
BC: ['B', 'C']
9+
AC: ['A', 'C']

0 commit comments

Comments
 (0)