Update notification-settings.tsx

This commit is contained in:
MacRimi
2026-03-21 20:29:30 +01:00
parent 134c62d543
commit ff08f4c0b5

View File

@@ -1802,19 +1802,6 @@ export function NotificationSettings() {
</Button>
) : (
<>
<Button
variant="outline"
size="sm"
onClick={() => {
updateConfig(p => ({ ...p, ai_custom_prompt: customPromptDraft }))
setEditingCustomPrompt(false)
handleSave()
}}
className="h-7 px-2 text-xs flex items-center gap-1 bg-green-600 hover:bg-green-700 text-white border-green-600"
>
<Save className="h-3 w-3" />
Save
</Button>
<Button
variant="outline"
size="sm"
@@ -1826,6 +1813,19 @@ export function NotificationSettings() {
>
Cancel
</Button>
<Button
variant="outline"
size="sm"
onClick={() => {
updateConfig(p => ({ ...p, ai_custom_prompt: customPromptDraft }))
setEditingCustomPrompt(false)
handleSave()
}}
className="h-7 px-2 text-xs flex items-center gap-1 bg-blue-600 hover:bg-blue-700 text-white border-blue-600"
>
<Save className="h-3 w-3" />
Save
</Button>
</>
)}
</div>