@elementor/editor-variables 4.1.0-828 → 4.1.0-830
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/variable-selection-popover.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -3276,7 +3276,7 @@ var VariableSelectionPopover = ({ closePopover, propTypeKey, selectedVariable })
|
|
|
3276
3276
|
};
|
|
3277
3277
|
function RenderView(props) {
|
|
3278
3278
|
const userPermissions = usePermissions();
|
|
3279
|
-
const
|
|
3279
|
+
const userQuotaPermissions = useQuotaPermissions(props.propTypeKey);
|
|
3280
3280
|
const handlers = {
|
|
3281
3281
|
onClose: () => {
|
|
3282
3282
|
props.closePopover();
|
|
@@ -3317,7 +3317,7 @@ function RenderView(props) {
|
|
|
3317
3317
|
onAdd: handlers.onAdd,
|
|
3318
3318
|
onEdit: handlers.onEdit,
|
|
3319
3319
|
onSettings: handlers.onSettings,
|
|
3320
|
-
disabled: !
|
|
3320
|
+
disabled: !userQuotaPermissions.canAdd()
|
|
3321
3321
|
}
|
|
3322
3322
|
);
|
|
3323
3323
|
}
|