سامانه صدور فاکتور و حسابداری

fix(startup): reject readiness when a module is unavailable instead of exposing partial ERP

davoodmehraban89 committed Oct 13, 2026 at 01:01 UTC b0bf4b7474616a1519c9bf976750e532398955c2
1 file changed +7 -4
js/bootstrap.js
+7 -4
@@ -60,9 +60,12 @@ window.addEventListener('DOMContentLoaded',async()=>{
60 extensionLoadMs:Math.round(performance.now()-started),
61 extensionsReady:true
62 });
63 - if(failed.length)console.error('Finora platform extension assets unavailable:',failed);
64 - // A successful sign-in/restored session must wait for these modules, but
65 - // rendering the interactive email/password form never waits for them.
66 - window.finoraMarkAppAssetsReady();
63 + if(failed.length){
64 + console.warn('Finora workspace assets unavailable; partial ERP is blocked.');
65 + window.finoraMarkAppAssetsFailed();
66 + }else{
67 + window.finoraMarkAppAssetsReady();
68 + }
69 + // Login controls remain usable even when workspace modules fail.
70 if(window.FinoraStartupStatus.authSessionChecked)window.FinoraStartupStatus.authChecked=true;
71 });