mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 00:40:21 +00:00
feat: custom domain management, responsive server layout, and config editor integration
This commit is contained in:
1 parent
68f3e02e26
commit
af8b05b690
7 files changed
+3159
-2872
No files matched your search
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user