- Notifications
You must be signed in to change notification settings - Fork1k
Commitaaa5071
fix: fix for template dormancy hour/day toggle (#19884)
resolves#15451 > Solution: Selecting days is always be enabled and rounds (up) thehours to the nearest day. I.e. 25 hours -> 2 days.tested with 26hrs saved, then toggled to days. result = value changed to2 daysIf you have used AI to produce some or all of this PR, please ensure youhave read our [AI Contributionguidelines](https://coder.com/docs/about/contributing/AI_CONTRIBUTING)before submitting.blink helped---------Co-authored-by: Claude <noreply@anthropic.com>1 parent54ce03a commitaaa5071
File tree
2 files changed
+34
-21
lines changed- site/src/components/DurationField
2 files changed
+34
-21
lines changedLines changed: 14 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 |
| - | |
| 67 | + | |
68 | 68 |
| |
69 |
| - | |
| 69 | + | |
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 |
| |
74 | 80 |
| |
| 81 | + | |
| 82 | + | |
75 | 83 |
| |
76 |
| - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
77 | 88 |
| |
78 | 89 |
| |
79 | 90 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 | 48 |
| |
56 | 49 |
| |
57 | 50 |
| |
58 | 51 |
| |
59 | 52 |
| |
60 |
| - | |
| 53 | + | |
61 | 54 |
| |
62 | 55 |
| |
63 | 56 |
| |
| |||
124 | 117 |
| |
125 | 118 |
| |
126 | 119 |
| |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
127 | 138 |
| |
128 | 139 |
| |
129 | 140 |
| |
130 | 141 |
| |
131 | 142 |
| |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
| 143 | + | |
138 | 144 |
| |
139 | 145 |
| |
140 | 146 |
| |
| |||
181 | 187 |
| |
182 | 188 |
| |
183 | 189 |
| |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 |
| - | |
|
0 commit comments
Comments
(0)