feat: custom domain management, responsive server layout, and config editor integration

This commit is contained in:
Bot committed 2026-08-31 04:41:57 +08:00
1 parent 68f3e02e26
commit af8b05b690
7 files changed
+3159 -2872

No files matched your search

+5 -6
View File
@@ -87,13 +87,12 @@ export const BatchEditNoteIcon: React.FC<BatchEditNoteIconProps> = ({
// For batch, usually we only override if they typed something.
// We can provide a checkbox or just update if not empty.
// Let's just update if not empty for safety.
let updatePayload = { ...server }
if (values.note && values.note.trim() !== "") {
updatePayload.note = values.note
}
if (values.public_note && values.public_note.trim() !== "") {
updatePayload.public_note = values.public_note
const updatePayload = {
...server,
note: values.note && values.note.trim() !== "" ? values.note : server.note,
public_note: values.public_note && values.public_note.trim() !== "" ? values.public_note : server.public_note,
}
// Clean up non-API fields
return updateServer(id, {