Revision 50534
Added by Myrto Koukouli about 6 years ago
compatibility-validate-step2.component.ts | ||
---|---|---|
9 | 9 |
|
10 | 10 |
export class CompatibilityValidateStep2Component implements OnInit { |
11 | 11 |
|
12 |
showRules: boolean; |
|
12 | 13 |
currentContentRules: Rule[] = []; |
13 | 14 |
currentUsageRules: Rule[] = []; |
14 | 15 |
|
... | ... | |
18 | 19 |
constructor() {} |
19 | 20 |
|
20 | 21 |
ngOnInit() { |
22 |
this.showRules = false; |
|
21 | 23 |
if ( this.ruleSets.length ) { |
22 | 24 |
this.getCurrentRuleSets(0); |
23 | 25 |
} |
... | ... | |
36 | 38 |
this.currentUsageRules = current[index].usageRules; |
37 | 39 |
} |
38 | 40 |
|
41 |
toggleSelectAllContentRules() {} |
|
42 |
|
|
43 |
toggleSelectAllUsageRules() {} |
|
44 |
|
|
39 | 45 |
toggleChooseContentRule(e: any, id: number) { |
40 | 46 |
if(e.target.checked) { |
41 | 47 |
console.log(this.currentContentRules[id].name); |
42 | 48 |
} |
43 | 49 |
} |
44 | 50 |
|
45 |
toggleChooseUsageRule(id: number) { |
|
46 |
console.log(this.currentUsageRules[id].name); |
|
51 |
toggleChooseUsageRule(e: any, id: number) { |
|
52 |
if (e.target.checked) { |
|
53 |
console.log(this.currentUsageRules[id].name); |
|
54 |
} |
|
47 | 55 |
} |
56 |
|
|
57 |
toggleShowRules() { |
|
58 |
if (this.showRules) { |
|
59 |
this.showRules = false; |
|
60 |
} else { |
|
61 |
this.showRules = true; |
|
62 |
} |
|
63 |
} |
|
48 | 64 |
} |
Also available in: Unified diff
created new get and update repository functions