()
| 2822 | } |
| 2823 | |
| 2824 | private hideApprovalPanel(): void { |
| 2825 | // If the full-screen preview is open, fold it back first so the saved- |
| 2826 | // children stack stays consistent with what mountEditorReplacement set up. |
| 2827 | if (this.approvalPreview !== undefined) this.closeApprovalPreview(); |
| 2828 | this.activeApprovalPanel = undefined; |
| 2829 | this.patchLivePane({ pendingApproval: null }); |
| 2830 | this.restoreEditor(); |
| 2831 | } |
| 2832 | |
| 2833 | // Mounts the full-screen approval preview viewer on top of the current |
| 2834 | // approval panel. Uses the same nested-takeover pattern as |
no test coverage detected