awf-test-lib 0.0.96 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -384,7 +384,9 @@ class ContactComponent {
|
|
384
384
|
}
|
385
385
|
ngOnChanges() {
|
386
386
|
this.reasons = this.reasons.filter(x => (x.code == ReasonCode.SDI || x.code == ReasonCode.OTH));
|
387
|
+
this.selectPM(this.selectedSystem);
|
387
388
|
this.loadForm();
|
389
|
+
console.log('changed');
|
388
390
|
}
|
389
391
|
// convenience getter for easy access to form fields
|
390
392
|
get f() {
|
@@ -455,13 +457,14 @@ class ContactComponent {
|
|
455
457
|
});
|
456
458
|
}
|
457
459
|
selectPM(selectedSystem) {
|
460
|
+
console.log(selectedSystem);
|
458
461
|
this.systemContainPm = true;
|
459
462
|
if (selectedSystem === undefined) {
|
460
463
|
return;
|
461
464
|
}
|
462
465
|
else {
|
463
466
|
if (selectedSystem.pmJobs.length === 0) {
|
464
|
-
this.
|
467
|
+
this.showPm = false;
|
465
468
|
}
|
466
469
|
else {
|
467
470
|
this.selectedSystem = selectedSystem;
|