@colijnit/transaction 12.1.91 → 12.1.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-transaction.umd.js +5 -3
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-card/transaction-card-header/transaction-card-header.component.js +1 -1
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +1 -1
- package/esm2015/lib/service/dialog.service.js +1 -1
- package/esm2015/lib/service/transaction-base.service.js +4 -1
- package/esm2015/lib/service/transaction.service.js +1 -1
- package/fesm2015/colijnit-transaction.js +3 -0
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +1 -1
|
@@ -6898,8 +6898,8 @@
|
|
|
6898
6898
|
return [4 /*yield*/, this._lockTransaction(id, version)];
|
|
6899
6899
|
case 1:
|
|
6900
6900
|
lockResponse = _a.sent();
|
|
6901
|
-
if (!lockResponse) return [3 /*break*/,
|
|
6902
|
-
if (!!lockResponse.isLockSuccess) return [3 /*break*/,
|
|
6901
|
+
if (!lockResponse) return [3 /*break*/, 6];
|
|
6902
|
+
if (!!lockResponse.isLockSuccess) return [3 /*break*/, 5];
|
|
6903
6903
|
if (secondAttempt) { // something went wrong
|
|
6904
6904
|
this.dialogService.showError(this.dictionaryService.get("UNKNOWN_ERROR"));
|
|
6905
6905
|
return [2 /*return*/, false];
|
|
@@ -6915,7 +6915,9 @@
|
|
|
6915
6915
|
lockDetails = this.dictionaryService.get("BY") + ": " + lockResponse.lockedBy + "\n " + this.dictionaryService.get("SINCE", false) + " " + lockResponse.lockedSince.toLocaleString();
|
|
6916
6916
|
this.dialogService.showError(this.dictionaryService.get("TRANSACTION_ALREADY_LOCKED"), lockDetails);
|
|
6917
6917
|
return [2 /*return*/, false];
|
|
6918
|
-
case 4: return [
|
|
6918
|
+
case 4: return [3 /*break*/, 6];
|
|
6919
|
+
case 5: return [2 /*return*/, true];
|
|
6920
|
+
case 6: return [2 /*return*/, false];
|
|
6919
6921
|
}
|
|
6920
6922
|
});
|
|
6921
6923
|
});
|