feat: Plan the next seven days from mobile #1179

Merged
rockachopa merged 5 commits from timmy/1177-plan-the-next-seven-days-from-mobile into main 2026-08-20 13:01:22 +00:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 4fbc9c62d9 - Show all commits

View File

@ -3060,7 +3060,7 @@
}
function openPlanToday(trigger, navigate = true, actualMinutes = null) {
if (!planningOwnerLogin) {
if (!planningOwnerLogin && !weekWorkflow.active()) {
qs('#my-work-action-status').textContent = 'Planning is unavailable until your operator identity is restored.';
return;
}

View File

@ -82,7 +82,6 @@ function createWeekPlanWorkflow({controller,qs,getLogin,openPlanner,escapeHtml,e
}));
}
async function open(trigger) {
if(!getLogin()){qs('#my-work-action-status').textContent='Planning is unavailable until your operator identity is restored.';return false;}
trigger.disabled=true;selectedDate=controller.dates()[0].date;renderDates();openPlanner(trigger);
qs('#mobile-week-summary').textContent='Loading Week Ahead…';
try{await controller.load();qs('#mobile-week-summary').textContent=controller.summary();openPlanner(null,false);return true;}