Skip to content

Commit a387272

Browse files
ernjvryadvr
authored andcommitted
ui: Fixes: #2831 rendering of scheduled snapshots widget (#2836)
In the UI, when Setting up a recurring snapshot for a volume and clicking 'Add', the newly added scheduled snapshot entry is not displayed in the 'Scheduled Snapshots' table. Also, the 'Keep' input field does not limit the length of a number that can be added. This causes the API not return an error that the value is invalid. After adding a recurring snapshot, it must display in the 'Scheduled Snapshots' table. The 'Keep' input field must restrain a user from entering too large of a number.
1 parent eb3953f commit a387272

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

ui/index.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ <h3><translate key="label.set.up.zone.type"/></h3>
15831583
<div class="field maxsnaps">
15841584
<div class="name"><translate key="label.keep" /></div>
15851585
<div class="value">
1586-
<input type="text" name="maxsnaps" class="required" />
1586+
<input type="text" name="maxsnaps" class="required" maxlength="9"/>
15871587
<label for="maxsnaps"><translate key="label.snapshots" /></label>
15881588
</div>
15891589
</div>
@@ -1686,34 +1686,34 @@ <h3><translate key="label.set.up.zone.type"/></h3>
16861686
<tbody>
16871687
<!-- Hourly -->
16881688
<tr class="hourly">
1689-
<td class="time"><translate key="label.time.colon" /> <span></span> <translate key="label.min.past.the.hr" /></td>
1689+
<td class="time"><translate key="label.time.colon"></translate> <span></span> <translate key="label.min.past.the.hr"></translate></td>
16901690
<td class="day-of-week"><span></span></td>
1691-
<td class="timezone"><translate key="label.timezone.colon" /><br/><span></span></td>
1692-
<td class="keep"><translate key="label.keep.colon" /> <span></span></td>
1691+
<td class="timezone"><translate key="label.timezone.colon"></translate><br/><span></span></td>
1692+
<td class="keep"><translate key="label.keep.colon"></translate> <span></span></td>
16931693
<td class="actions"><div class="action destroy"><span class="icon">&nbsp;</span></div></td>
16941694
</tr>
16951695
<!-- Daily -->
16961696
<tr class="daily">
1697-
<td class="time"><translate key="label.time.colon" /> <span></span></td>
1697+
<td class="time"><translate key="label.time.colon"></translate> <span></span></td>
16981698
<td class="day-of-week"><span></span></td>
1699-
<td class="timezone"><translate key="label.timezone.colon" /><br/><span></span></td>
1700-
<td class="keep"><translate key="label.keep.colon" /> <span></span></td>
1699+
<td class="timezone"><translate key="label.timezone.colon"></translate><br/><span></span></td>
1700+
<td class="keep"><translate key="label.keep.colon"></translate> <span></span></td>
17011701
<td class="actions"><div class="action destroy"><span class="icon">&nbsp;</span></div></td>
17021702
</tr>
17031703
<!-- Weekly -->
17041704
<tr class="weekly">
1705-
<td class="time"><translate key="label.time.colon" /> <span></span></td>
1706-
<td class="day-of-week"><translate key="label.every" /> <span></span></td>
1707-
<td class="timezone"><translate key="label.timezone.colon" /><br/><span></span></td>
1708-
<td class="keep"><translate key="label.keep.colon" /> <span></span></td>
1705+
<td class="time"><translate key="label.time.colon"></translate> <span></span></td>
1706+
<td class="day-of-week"><translate key="label.every"></translate> <span></span></td>
1707+
<td class="timezone"><translate key="label.timezone.colon"></translate><br/><span></span></td>
1708+
<td class="keep"><translate key="label.keep.colon"></translate> <span></span></td>
17091709
<td class="actions"><div class="action destroy"><span class="icon">&nbsp;</span></div></td>
17101710
</tr>
17111711
<!-- Monthly -->
17121712
<tr class="monthly">
1713-
<td class="time"><translate key="label.time.colon" /> <span></span></td>
1714-
<td class="day-of-week"><translate key="label.day" /> <span></span> <translate key="label.of.month" /></td>
1715-
<td class="timezone"><translate key="label.timezone.colon" /><br/><span></span></td>
1716-
<td class="keep"><translate key="label.keep.colon" /> <span></span></td>
1713+
<td class="time"><translate key="label.time.colon"></translate> <span></span></td>
1714+
<td class="day-of-week"><translate key="label.day"></translate> <span></span> <translate key="label.of.month"></translate></td>
1715+
<td class="timezone"><translate key="label.timezone.colon"></translate><br/><span></span></td>
1716+
<td class="keep"><translate key="label.keep.colon"></translate> <span></span></td>
17171717
<td class="actions"><div class="action destroy"><span class="icon">&nbsp;</span></div></td>
17181718
</tr>
17191719
</tbody>

0 commit comments

Comments
 (0)