Skip to content

Commit 7367a41

Browse files
committed
fix checks for UI backup schedule list view
1 parent e420927 commit 7367a41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/components/view/ListView.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@
236236
<template v-if="column.key === 'schedule'">
237237
<div v-if="['/snapshotpolicy', '/backupschedule'].some(path => $route.path.endsWith(path))">
238238
<label class="interval-content">
239-
<span v-if="record.intervaltype===0">{{ record.schedule + $t('label.min.past.hour') }}</span>
239+
<span v-if="record.intervaltype===0 || record.intervaltype==='HOURLY'">{{ record.schedule + $t('label.min.past.hour') }}</span>
240240
<span v-else>{{ record.schedule.split(':')[1] + ':' + record.schedule.split(':')[0] }}</span>
241241
</label>
242-
<span v-if="record.intervaltype===2">
242+
<span v-if="record.intervaltype===2 || record.intervaltype==='WEEKLY'">
243243
{{ ` ${$t('label.every')} ${$t(listDayOfWeek[record.schedule.split(':')[2] - 1])}` }}
244244
</span>
245-
<span v-else-if="record.intervaltype===3">
245+
<span v-else-if="record.intervaltype===3 || record.intervaltype==='MONTHLY'">
246246
{{ ` ${$t('label.day')} ${record.schedule.split(':')[2]} ${$t('label.of.month')}` }}
247247
</span>
248248
</div>

0 commit comments

Comments
 (0)