mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-02-25 17:57:35 +03:00
prune sim: shorten code for weekdayFlags computation
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5ad65cc252
commit
ed4466d840
@ -430,15 +430,8 @@ Ext.onReady(function() {
|
||||
populateFromSchedule: function(weekdays, hours, minutes, weekCount) {
|
||||
const me = this;
|
||||
|
||||
let weekdayFlags = [
|
||||
weekdays.includes('sun'),
|
||||
weekdays.includes('mon'),
|
||||
weekdays.includes('tue'),
|
||||
weekdays.includes('wed'),
|
||||
weekdays.includes('thu'),
|
||||
weekdays.includes('fri'),
|
||||
weekdays.includes('sat'),
|
||||
];
|
||||
let weekdayFlags = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']
|
||||
.map(v => weekdays.includes(v));
|
||||
|
||||
const vmDate = me.getViewModel().get('now');
|
||||
let todaysDate = new Date(vmDate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user