()
| 2855 | } |
| 2856 | |
| 2857 | private closeApprovalPreview(): void { |
| 2858 | const preview = this.approvalPreview; |
| 2859 | if (preview === undefined) return; |
| 2860 | this.approvalPreview = undefined; |
| 2861 | this.state.ui.clear(); |
| 2862 | for (const child of preview.savedChildren) { |
| 2863 | this.state.ui.addChild(child); |
| 2864 | } |
| 2865 | this.state.ui.setFocus(preview.panel); |
| 2866 | this.state.ui.requestRender(true); |
| 2867 | } |
| 2868 | |
| 2869 | private showQuestionDialog(payload: QuestionPanelData): void { |
| 2870 | this.patchLivePane({ pendingQuestion: { data: payload } }); |
no test coverage detected