Commit 70968fd
committed
Simplify checkbox handling for mirror active field
Removed unnecessary hidden input fields and simplified the form parsing
logic for the active checkbox in mirror creation and editing forms.
Changes:
- Replaced complex list indexing with simple membership check
- Removed hidden input fields from both Jinja templates
- Updated comments to reflect simpler approach
The functionality remains identical, but the code is more readable
and maintainable.1 parent 428c114 commit 70968fd
File tree
3 files changed
+4
-10
lines changed- apollo/server
- routes
- templates
3 files changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
| 500 | + | |
| 501 | + | |
504 | 502 | | |
505 | 503 | | |
506 | 504 | | |
| |||
602 | 600 | | |
603 | 601 | | |
604 | 602 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
| 603 | + | |
| 604 | + | |
609 | 605 | | |
610 | 606 | | |
611 | 607 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
0 commit comments