@kuzntsv/uikit 1.0.111 → 1.0.112
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.
|
@@ -2254,8 +2254,8 @@ var BaseSignalPageClass = class BaseSignalPageClass {
|
|
|
2254
2254
|
if (this.dataResource.error() || this.countResource.error()) return false;
|
|
2255
2255
|
return this.dataResource.isLoading() || this.countResource.isLoading();
|
|
2256
2256
|
}, ...ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []);
|
|
2257
|
-
editBtnDisabled =
|
|
2258
|
-
removeBtnDisabled =
|
|
2257
|
+
editBtnDisabled = computed(() => !(this.selected() && this.selected().length === 1), ...ngDevMode ? [{ debugName: "editBtnDisabled" }] : /* istanbul ignore next */ []);
|
|
2258
|
+
removeBtnDisabled = computed(() => !(this.selected() && this.selected().length > 0), ...ngDevMode ? [{ debugName: "removeBtnDisabled" }] : /* istanbul ignore next */ []);
|
|
2259
2259
|
dblClickedEventEnable = true;
|
|
2260
2260
|
opt = [];
|
|
2261
2261
|
router = inject(Router);
|
|
@@ -2409,14 +2409,6 @@ var BaseSignalPageClass = class BaseSignalPageClass {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
onSelectionChange(selected) {
|
|
2411
2411
|
this.selected.set(selected);
|
|
2412
|
-
this.editBtnDisabledUpdate(selected);
|
|
2413
|
-
this.removeBtnDisabledUpdate(selected);
|
|
2414
|
-
}
|
|
2415
|
-
editBtnDisabledUpdate(selected) {
|
|
2416
|
-
this.editBtnDisabled = !(selected && selected.length === 1);
|
|
2417
|
-
}
|
|
2418
|
-
removeBtnDisabledUpdate(selected) {
|
|
2419
|
-
this.removeBtnDisabled = !(selected && selected.length > 0);
|
|
2420
2412
|
}
|
|
2421
2413
|
onRowDoubleClicked() {
|
|
2422
2414
|
this.editEvent();
|