kui-crm_actions 0.0.126 → 0.0.127
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/cjs/index.js +16 -8
- package/cjs/index.js.map +1 -1
- package/index.js +16 -8
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1093,6 +1093,11 @@ var StyledCheckbox = styled(CheckboxWithController)(templateObject_2$3 || (templ
|
|
1093
1093
|
var templateObject_1$4, templateObject_2$3;
|
1094
1094
|
|
1095
1095
|
var useMetersValues = function (formStore, metersStore, shouldBeLoad, onLoad) {
|
1096
|
+
var finishLoad = function () {
|
1097
|
+
if (onLoad)
|
1098
|
+
onLoad();
|
1099
|
+
metersStore.loader.endLoading();
|
1100
|
+
};
|
1096
1101
|
var loadMeters = function () { return __awaiter(void 0, void 0, void 0, function () {
|
1097
1102
|
var _a, _b;
|
1098
1103
|
return __generator(this, function (_c) {
|
@@ -1105,12 +1110,11 @@ var useMetersValues = function (formStore, metersStore, shouldBeLoad, onLoad) {
|
|
1105
1110
|
_c.sent();
|
1106
1111
|
_c.label = 2;
|
1107
1112
|
case 2:
|
1108
|
-
|
1109
|
-
onLoad();
|
1113
|
+
finishLoad();
|
1110
1114
|
return [3 /*break*/, 4];
|
1111
1115
|
case 3:
|
1112
|
-
if (shouldBeLoad === false
|
1113
|
-
|
1116
|
+
if (shouldBeLoad === false)
|
1117
|
+
finishLoad();
|
1114
1118
|
_c.label = 4;
|
1115
1119
|
case 4: return [2 /*return*/];
|
1116
1120
|
}
|
@@ -1162,6 +1166,11 @@ var FillingListStore = /** @class */ (function () {
|
|
1162
1166
|
}());
|
1163
1167
|
|
1164
1168
|
var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoad, onLoad) {
|
1169
|
+
var finishLoad = function () {
|
1170
|
+
if (onLoad)
|
1171
|
+
onLoad();
|
1172
|
+
fillingStore.loader.endLoading();
|
1173
|
+
};
|
1165
1174
|
var loadFillingList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
1166
1175
|
var _a, _b;
|
1167
1176
|
return __generator(this, function (_c) {
|
@@ -1174,12 +1183,11 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
|
|
1174
1183
|
_c.sent();
|
1175
1184
|
_c.label = 2;
|
1176
1185
|
case 2:
|
1177
|
-
|
1178
|
-
onLoad();
|
1186
|
+
finishLoad();
|
1179
1187
|
return [3 /*break*/, 4];
|
1180
1188
|
case 3:
|
1181
|
-
if (shouldBeLoad === false
|
1182
|
-
|
1189
|
+
if (shouldBeLoad === false)
|
1190
|
+
finishLoad();
|
1183
1191
|
_c.label = 4;
|
1184
1192
|
case 4: return [2 /*return*/];
|
1185
1193
|
}
|