| @@ -65,8 +65,13 @@ | ||
| 65 | 65 | }, |
| 66 | 66 | body: body.toString() |
| 67 | 67 | }) |
| 68 | 68 | .then(function (response) { |
| 69 | + if (response.status === 403) { | |
| 70 | + window.syncBasalamFinanceLock(); | |
| 71 | + throw new Error(config.errorMessage); | |
| 72 | + } | |
| 73 | + | |
| 69 | 74 | if (!response.ok) { |
| 70 | 75 | throw new Error(config.errorMessage); |
| 71 | 76 | } |
| 72 | 77 | |
| @@ -87,8 +92,11 @@ | ||
| 87 | 92 | updateUrl(nextSection, nextSection.dataset.historyPage || payload.data.historyPage || historyPage); |
| 88 | 93 | }) |
| 89 | 94 | .catch(function (error) { |
| 90 | 95 | setLoadingState(section, false); |
| 96 | + if (document.querySelector('.basalam-finance-page.is-locked')) { | |
| 97 | + return; | |
| 98 | + } | |
| 91 | 99 | window.alert(error.message || config.errorMessage); |
| 92 | 100 | }); |
| 93 | 101 | }); |
| 94 | 102 | }()); |