backup schedule: fix button state with 'never'

This commit is contained in:
Girish Ramakrishnan
2025-11-18 10:37:42 +01:00
parent c5f97e8bb0
commit 3693857960
@@ -18,7 +18,7 @@ const days = ref([]);
const hours = ref([]);
const configureRetention = ref(''); // this is 'name' and not 'id' of backupRetentions because SingleSelect needs strings
const isConfigureValid = computed(() => {
return !!days.value.length && !!hours.value.length;
return scheduleType.value === 'never' || (days.value.length > 0 && hours.value.length > 0);
});
async function onSubmit() {