@the-liberators/ngx-scrumteamsurvey-tools 2.3.61 → 2.3.62
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.
|
@@ -4152,17 +4152,17 @@ class TeamFlagsInputComponent {
|
|
|
4152
4152
|
});
|
|
4153
4153
|
}
|
|
4154
4154
|
writeValue(flags) {
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4155
|
+
const defaultFlags = new TeamFlagsDto();
|
|
4156
|
+
flags = flags || defaultFlags;
|
|
4157
|
+
this.form.controls.isAgileTeam.setValue(flags.isAgileTeam);
|
|
4158
|
+
this.form.controls.isSoftwareTeam.setValue(flags.isSoftwareTeam);
|
|
4159
|
+
this.form.controls.isIterationTeam.setValue(flags.isIterationTeam);
|
|
4160
4160
|
}
|
|
4161
4161
|
getValue() {
|
|
4162
4162
|
var dto = new TeamFlagsDto();
|
|
4163
|
-
dto.isAgileTeam = this.form.controls.isAgileTeam.value;
|
|
4164
|
-
dto.isSoftwareTeam = this.form.controls.isSoftwareTeam.value;
|
|
4165
|
-
dto.isIterationTeam = this.form.controls.isIterationTeam.value;
|
|
4163
|
+
dto.isAgileTeam = this.form.controls.isAgileTeam.value ?? false;
|
|
4164
|
+
dto.isSoftwareTeam = this.form.controls.isSoftwareTeam.value ?? false;
|
|
4165
|
+
dto.isIterationTeam = this.form.controls.isIterationTeam.value ?? false;
|
|
4166
4166
|
return dto;
|
|
4167
4167
|
}
|
|
4168
4168
|
registerOnChange(fn) {
|