@kuzntsv/uikit 1.0.65 → 1.0.66
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.
|
@@ -2767,17 +2767,19 @@ var BaseSignalPageClass = class BaseSignalPageClass {
|
|
|
2767
2767
|
countResource;
|
|
2768
2768
|
data = computed(() => {
|
|
2769
2769
|
if (!this.dataResource) return [];
|
|
2770
|
+
if (this.dataResource.error()) return [];
|
|
2770
2771
|
const rawData = this.dataResource?.value() || [];
|
|
2771
2772
|
return this.fnMapEntity && Array.isArray(rawData) ? rawData.map(this.fnMapEntity()) : rawData;
|
|
2772
2773
|
}, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
2773
2774
|
length = computed(() => {
|
|
2774
2775
|
if (!this.countResource) return 0;
|
|
2776
|
+
if (this.countResource.error()) return 0;
|
|
2775
2777
|
return this.countResource?.value() || 0;
|
|
2776
2778
|
}, ...ngDevMode ? [{ debugName: "length" }] : /* istanbul ignore next */ []);
|
|
2777
2779
|
isLoading = computed(() => {
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
return
|
|
2780
|
+
if (!this.dataResource || !this.countResource) return false;
|
|
2781
|
+
if (this.dataResource.error() || this.countResource.error()) return false;
|
|
2782
|
+
return this.dataResource.isLoading() || this.countResource.isLoading();
|
|
2781
2783
|
}, ...ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []);
|
|
2782
2784
|
editBtnDisabled = true;
|
|
2783
2785
|
removeBtnDisabled = true;
|