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/cjs/index.js
CHANGED
@@ -1122,6 +1122,11 @@ var StyledCheckbox = styled__default["default"](kuiComplex.CheckboxWithControlle
|
|
1122
1122
|
var templateObject_1$4, templateObject_2$3;
|
1123
1123
|
|
1124
1124
|
var useMetersValues = function (formStore, metersStore, shouldBeLoad, onLoad) {
|
1125
|
+
var finishLoad = function () {
|
1126
|
+
if (onLoad)
|
1127
|
+
onLoad();
|
1128
|
+
metersStore.loader.endLoading();
|
1129
|
+
};
|
1125
1130
|
var loadMeters = function () { return __awaiter(void 0, void 0, void 0, function () {
|
1126
1131
|
var _a, _b;
|
1127
1132
|
return __generator(this, function (_c) {
|
@@ -1134,12 +1139,11 @@ var useMetersValues = function (formStore, metersStore, shouldBeLoad, onLoad) {
|
|
1134
1139
|
_c.sent();
|
1135
1140
|
_c.label = 2;
|
1136
1141
|
case 2:
|
1137
|
-
|
1138
|
-
onLoad();
|
1142
|
+
finishLoad();
|
1139
1143
|
return [3 /*break*/, 4];
|
1140
1144
|
case 3:
|
1141
|
-
if (shouldBeLoad === false
|
1142
|
-
|
1145
|
+
if (shouldBeLoad === false)
|
1146
|
+
finishLoad();
|
1143
1147
|
_c.label = 4;
|
1144
1148
|
case 4: return [2 /*return*/];
|
1145
1149
|
}
|
@@ -1191,6 +1195,11 @@ var FillingListStore = /** @class */ (function () {
|
|
1191
1195
|
}());
|
1192
1196
|
|
1193
1197
|
var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoad, onLoad) {
|
1198
|
+
var finishLoad = function () {
|
1199
|
+
if (onLoad)
|
1200
|
+
onLoad();
|
1201
|
+
fillingStore.loader.endLoading();
|
1202
|
+
};
|
1194
1203
|
var loadFillingList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
1195
1204
|
var _a, _b;
|
1196
1205
|
return __generator(this, function (_c) {
|
@@ -1203,12 +1212,11 @@ var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoa
|
|
1203
1212
|
_c.sent();
|
1204
1213
|
_c.label = 2;
|
1205
1214
|
case 2:
|
1206
|
-
|
1207
|
-
onLoad();
|
1215
|
+
finishLoad();
|
1208
1216
|
return [3 /*break*/, 4];
|
1209
1217
|
case 3:
|
1210
|
-
if (shouldBeLoad === false
|
1211
|
-
|
1218
|
+
if (shouldBeLoad === false)
|
1219
|
+
finishLoad();
|
1212
1220
|
_c.label = 4;
|
1213
1221
|
case 4: return [2 /*return*/];
|
1214
1222
|
}
|