Commit cc17d4c
committed
refactor(ntfy): simplify template UI and fix help text
Simplify the custom template UI based on maintainer feedback:
- Replace TemplatedInput/TemplatedTextarea with plain HTML elements
to avoid duplicate help text
- Add shared help text explaining LiquidJS templating and available
variables above both input fields
- Change from v-if to v-show for better performance
- Add auto-enable logic for template checkbox when fields have content
This makes the UI cleaner and follows the DRY principle by showing
template documentation once instead of repeating it for each field.1 parent 04d5e83 commit cc17d4c
1 file changed
+38
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
124 | 141 | | |
125 | 142 | | |
126 | | - | |
| 143 | + | |
127 | 144 | | |
128 | 145 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
132 | 150 | | |
133 | 151 | | |
134 | 152 | | |
135 | 153 | | |
136 | 154 | | |
137 | | - | |
| 155 | + | |
138 | 156 | | |
139 | 157 | | |
140 | | - | |
141 | | - | |
142 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
143 | 161 | | |
144 | 162 | | |
145 | | - | |
| 163 | + | |
146 | 164 | | |
147 | 165 | | |
148 | 166 | | |
149 | 167 | | |
150 | | - | |
151 | | - | |
152 | 168 | | |
153 | 169 | | |
154 | 170 | | |
155 | 171 | | |
156 | | - | |
157 | | - | |
158 | 172 | | |
159 | 173 | | |
160 | 174 | | |
| |||
184 | 198 | | |
185 | 199 | | |
186 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
187 | 208 | | |
188 | 209 | | |
189 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
0 commit comments