From 07cfb06ee67e14288dc620fb26ac2281ea9b223e Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 13 Mar 2026 23:09:03 +0100 Subject: [PATCH] Update button disabled condition in App.tsx --- src/App.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index d9b1657..6e46685 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2437,7 +2437,11 @@ export default function App() { className="button" type="button" onClick={isConverting ? handleCancelConversion : handleOpenAiToolsMenu} - disabled={isConverting ? false : !ollamaModel || isViewingHistory || !hasText} + disabled={ + isConverting + ? false + : !ollamaModel || isViewingHistory || !hasText || aiPromptTemplates.length === 0 + } > {isConverting ? "Cancel AI Edit" : "AI Tools"}