kui-crm_actions 0.0.125 → 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 +22 -12
- package/cjs/index.js.map +1 -1
- package/index.js +22 -12
- 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) {
|
@@ -1103,13 +1108,13 @@ var useMetersValues = function (formStore, metersStore, shouldBeLoad, onLoad) {
|
|
1103
1108
|
return [4 /*yield*/, metersStore.fetchMeters()];
|
1104
1109
|
case 1:
|
1105
1110
|
_c.sent();
|
1106
|
-
if (onLoad)
|
1107
|
-
onLoad();
|
1108
1111
|
_c.label = 2;
|
1109
|
-
case 2:
|
1112
|
+
case 2:
|
1113
|
+
finishLoad();
|
1114
|
+
return [3 /*break*/, 4];
|
1110
1115
|
case 3:
|
1111
|
-
if (shouldBeLoad === false
|
1112
|
-
|
1116
|
+
if (shouldBeLoad === false)
|
1117
|
+
finishLoad();
|
1113
1118
|
_c.label = 4;
|
1114
1119
|
case 4: return [2 /*return*/];
|
1115
1120
|
}
|
@@ -1161,23 +1166,28 @@ var FillingListStore = /** @class */ (function () {
|
|
1161
1166
|
}());
|
1162
1167
|
|
1163
1168
|
var useFillingList = function (apartmentId, formStore, fillingStore, shouldBeLoad, onLoad) {
|
1169
|
+
var finishLoad = function () {
|
1170
|
+
if (onLoad)
|
1171
|
+
onLoad();
|
1172
|
+
fillingStore.loader.endLoading();
|
1173
|
+
};
|
1164
1174
|
var loadFillingList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
1165
1175
|
var _a, _b;
|
1166
1176
|
return __generator(this, function (_c) {
|
1167
1177
|
switch (_c.label) {
|
1168
1178
|
case 0:
|
1169
|
-
if (!shouldBeLoad) return [3 /*break*/, 3];
|
1170
|
-
if (
|
1179
|
+
if (!(shouldBeLoad && apartmentId)) return [3 /*break*/, 3];
|
1180
|
+
if (!!((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.filling) === null || _b === void 0 ? void 0 : _b.length)) return [3 /*break*/, 2];
|
1171
1181
|
return [4 /*yield*/, fillingStore.fetchFillingList(apartmentId, "appliance")];
|
1172
1182
|
case 1:
|
1173
1183
|
_c.sent();
|
1174
|
-
if (onLoad)
|
1175
|
-
onLoad();
|
1176
1184
|
_c.label = 2;
|
1177
|
-
case 2:
|
1185
|
+
case 2:
|
1186
|
+
finishLoad();
|
1187
|
+
return [3 /*break*/, 4];
|
1178
1188
|
case 3:
|
1179
|
-
if (shouldBeLoad === false
|
1180
|
-
|
1189
|
+
if (shouldBeLoad === false)
|
1190
|
+
finishLoad();
|
1181
1191
|
_c.label = 4;
|
1182
1192
|
case 4: return [2 /*return*/];
|
1183
1193
|
}
|