fix: allow Week Ahead while identity finishes restoring (Refs #1177)
Some checks failed
CI / lint (pull_request) Successful in 3m28s
CI / build-release (pull_request) Successful in 7s
CI / browser-journey (pull_request) Failing after 4m52s
CI / release-candidate (pull_request) Has been skipped

This commit is contained in:
timmy 2026-08-20 11:53:45 +00:00
parent a1b4698988
commit 4fbc9c62d9
2 changed files with 1 additions and 2 deletions

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;}