mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-18 10:02:16 +00:00
Update notification-settings.tsx
This commit is contained in:
@@ -1802,19 +1802,6 @@ export function NotificationSettings() {
|
|||||||
</Button>
|
</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
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
@@ -1826,6 +1813,19 @@ export function NotificationSettings() {
|
|||||||
>
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</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>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user