mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-10-20 21:14:05 +02:00
chore: Refine config form and UI components
- Add x-init hook to set default form values in config form - Adjust scrollbar hover color in layout - Create marker files for providers, source, and destination packages - Remove unnecessary error styling in local source form
This commit is contained in:
1 parent
43f1772038
commit
3b9ff3b6a8
6 files changed
+17
-3
No files matched your search
@@ -223,7 +223,13 @@ templ ConfigForm(ctx context.Context, data ConfigFormData) {
|
||||
hx-redirect="/configs"
|
||||
hx-boost="true"
|
||||
x-data={ getInitialData(data.Config) }
|
||||
@submit.prevent="if (validateForm()) { loading = true; $el.submit(); } else { loading = false; }"
|
||||
x-init="$nextTick(() => {
|
||||
// Ensure initial form state displays correctly on load
|
||||
sourceType = sourceType || 'local';
|
||||
destinationType = destinationType || 'local';
|
||||
sourcePort = sourcePort || 22;
|
||||
destPort = destPort || 22;
|
||||
})"
|
||||
>
|
||||
|
||||
<!-- Name field -->
|
||||
|
||||
Reference in new issue
Block a user