tsv2-library 1.1.0-dev-alpha.52 → 1.1.0-dev-alpha.53
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/dist/tsv2-library.es.js
CHANGED
|
@@ -42729,9 +42729,15 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
42729
42729
|
selectedNode.value = temporarySelectedNode.value;
|
|
42730
42730
|
if (Object.keys(selectedTreeKeys.value ?? {}).length) {
|
|
42731
42731
|
const remainingQuota = ((_a = props.validateQuota) == null ? void 0 : _a.countAvailableQuota) ? (_b = props.validateQuota) == null ? void 0 : _b.countAvailableQuota(selectedNode.value) : (((_d = (_c = selectedNode.value) == null ? void 0 : _c.fixedAssetQuota) == null ? void 0 : _d.available) ?? 0) - (((_e = selectedNode.value) == null ? void 0 : _e.assetOnTransferCount) ?? 0);
|
|
42732
|
-
if (props.validateQuota
|
|
42733
|
-
|
|
42734
|
-
|
|
42732
|
+
if (props.validateQuota) {
|
|
42733
|
+
if (remainingQuota < 1) {
|
|
42734
|
+
invalidSelectionMessage.value = "Group quota is exceeded";
|
|
42735
|
+
return;
|
|
42736
|
+
}
|
|
42737
|
+
if (props.validateQuota.assetQuantity > remainingQuota) {
|
|
42738
|
+
invalidSelectionMessage.value = "Group quota is exceeded";
|
|
42739
|
+
return;
|
|
42740
|
+
}
|
|
42735
42741
|
}
|
|
42736
42742
|
emit("select", {
|
|
42737
42743
|
keys: selectedTreeKeys.value,
|