Commits
Michael Spalti authored 8bfd6ca0318
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 { |