Flexibles KI Prompt System #48

Merged
Lars merged 56 commits from develop into main 2026-03-26 14:49:48 +01:00
Showing only changes of commit b90c738fbb - Show all commits

View File

@ -691,19 +691,18 @@ export default function UnifiedPromptModal({ prompt, onSave, onClose }) {
paddingTop: 16, borderTop: '1px solid var(--border)' paddingTop: 16, borderTop: '1px solid var(--border)'
}}> }}>
<div style={{ display: 'flex', gap: 8 }}> <div style={{ display: 'flex', gap: 8 }}>
{prompt?.slug && ( <button
<button className="btn"
className="btn" onClick={handleTest}
onClick={handleTest} disabled={testing || loading}
disabled={testing || loading} style={{
style={{ background: testing ? 'var(--surface)' : 'var(--accent)',
background: testing ? 'var(--surface)' : 'var(--accent)', color: testing ? 'var(--text3)' : 'white'
color: testing ? 'var(--text3)' : 'white' }}
}} title={!prompt?.slug ? 'Bitte erst speichern, dann testen' : 'Test mit Debug-Modus ausführen'}
> >
{testing ? '🔬 Teste...' : '🔬 Test ausführen'} {testing ? '🔬 Teste...' : '🔬 Test ausführen'}
</button> </button>
)}
<button <button
className="btn" className="btn"
onClick={handleExport} onClick={handleExport}