From 4fbc9c62d981b14c7047c40048583f824b3d932e Mon Sep 17 00:00:00 2001 From: timmy Date: Thu, 20 Aug 2026 11:53:45 +0000 Subject: [PATCH] fix: allow Week Ahead while identity finishes restoring (Refs #1177) --- frontend/dashboard.js | 2 +- frontend/week-plan.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/dashboard.js b/frontend/dashboard.js index 3b75a22..2189cfb 100644 --- a/frontend/dashboard.js +++ b/frontend/dashboard.js @@ -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; } diff --git a/frontend/week-plan.js b/frontend/week-plan.js index 9c0efaa..741dbea 100644 --- a/frontend/week-plan.js +++ b/frontend/week-plan.js @@ -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;}