don't autoupdate detail forms during editing
This commit is contained in:
parent
e959ef9c52
commit
a2b75194a1
@ -188,7 +188,7 @@ export class TopicDetailComponent extends BaseViewComponent {
|
|||||||
if (newViewTopic && !this.editTopic) {
|
if (newViewTopic && !this.editTopic) {
|
||||||
this.topic = newViewTopic;
|
this.topic = newViewTopic;
|
||||||
// personalInfoForm is undefined during 'new' and directly after reloading
|
// personalInfoForm is undefined during 'new' and directly after reloading
|
||||||
if (this.topicForm) {
|
if (this.topicForm && !this.editTopic) {
|
||||||
this.patchForm();
|
this.patchForm();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -333,8 +333,10 @@ export class AssignmentDetailComponent extends BaseViewComponent implements OnIn
|
|||||||
this.repo.getViewModelObservable(assignmentId).subscribe(assignment => {
|
this.repo.getViewModelObservable(assignmentId).subscribe(assignment => {
|
||||||
if (assignment) {
|
if (assignment) {
|
||||||
this.assignment = assignment;
|
this.assignment = assignment;
|
||||||
|
if (!this.editAssignment) {
|
||||||
this.patchForm(this.assignment);
|
this.patchForm(this.assignment);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -580,8 +580,10 @@ export class MotionDetailComponent extends BaseViewComponent implements OnInit,
|
|||||||
if (motion) {
|
if (motion) {
|
||||||
this.motion = motion;
|
this.motion = motion;
|
||||||
this.newStateExtension = this.motion.stateExtension;
|
this.newStateExtension = this.motion.stateExtension;
|
||||||
|
if (!this.editMotion) {
|
||||||
this.patchForm(this.motion);
|
this.patchForm(this.motion);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
this.repo.amendmentsTo(motionId).subscribe(
|
this.repo.amendmentsTo(motionId).subscribe(
|
||||||
(amendments: ViewMotion[]): void => {
|
(amendments: ViewMotion[]): void => {
|
||||||
|
Loading…
Reference in New Issue
Block a user