fix: allow Week Ahead while identity finishes restoring (Refs #1177)
This commit is contained in:
parent
a1b4698988
commit
4fbc9c62d9
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user