Ensure we reset the days and hours when schedule is disabled

This commit is contained in:
Johannes Zellner
2020-11-11 20:00:55 +01:00
parent 2a14f6c441
commit 5617e19e7c

View File

@@ -213,6 +213,8 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
if ($scope.updateSchedule.currentPattern === 'never') {
$scope.updateSchedule.type = 'never';
$scope.updateSchedule.days = [];
$scope.updateSchedule.hours = [];
} else {
$scope.updateSchedule.type = 'pattern';