Commits

Michael Spalti authored 8bfd6ca0318
Form re-initialization limited to iiif enabled item.
No tags

src/app/bitstream-page/edit-bitstream-page/edit-bitstream-page.component.ts

Modified
707 707 if (iiif) {
708 708 this.isIIIF = true;
709 709 this.inputModels.push(this.iiifLabelModel);
710 710 this.formModel.push(this.iiifLabelContainer);
711 711 this.inputModels.push(this.iiifTocModel);
712 712 this.formModel.push(this.iiifTocContainer);
713 713 this.inputModels.push(this.iiifWidthModel);
714 714 this.formModel.push(this.iiifWidthContainer);
715 715 this.inputModels.push(this.iiifHeightModel);
716 716 this.formModel.push(this.iiifHeightContainer);
717 + // re-initialize the form and detect the change.
718 + this.setForm();
719 + this.changeDetectorRef.detectChanges();
717 720 }
718 - // re-initialize the form and detect the change.
719 - this.setForm();
720 - this.changeDetectorRef.detectChanges();
721 721 });
722 722
723 723 this.subs.push(iiifSub);
724 724
725 725 }
726 726
727 727 /**
728 728 * Unsubscribe from open subscriptions
729 729 */
730 730 ngOnDestroy(): void {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut