From b1fc0ae2f51f60304d1e33609ee7e32d155eac02 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sun, 30 Nov 2025 15:27:18 +1100 Subject: [PATCH] Readd response view for editor --- static/js/mithril/editor.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/static/js/mithril/editor.js b/static/js/mithril/editor.js index cfd6cef..0bd5900 100644 --- a/static/js/mithril/editor.js +++ b/static/js/mithril/editor.js @@ -1023,7 +1023,19 @@ const Editor = { ), ]), ]), - + !this.executeLoading && + !this.error && + this.response && + m(ResponseView, { + response: this.response, + responseTime: this.responseTime, + responseSize: this.responseSize, + envEditorValue: this.jsonValue, + isTimer: this.isTimer, + onClose: () => { + this.response = null; + }, + }), /* AI Modal */ this.aiModalOpen && m("div", { class: "fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",