@elementor/editor-variables 4.1.0-828 → 4.1.0-829
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.mjs
CHANGED
|
@@ -3279,7 +3279,7 @@ var VariableSelectionPopover = ({ closePopover, propTypeKey, selectedVariable })
|
|
|
3279
3279
|
};
|
|
3280
3280
|
function RenderView(props) {
|
|
3281
3281
|
const userPermissions = usePermissions();
|
|
3282
|
-
const
|
|
3282
|
+
const userQuotaPermissions = useQuotaPermissions(props.propTypeKey);
|
|
3283
3283
|
const handlers = {
|
|
3284
3284
|
onClose: () => {
|
|
3285
3285
|
props.closePopover();
|
|
@@ -3320,7 +3320,7 @@ function RenderView(props) {
|
|
|
3320
3320
|
onAdd: handlers.onAdd,
|
|
3321
3321
|
onEdit: handlers.onEdit,
|
|
3322
3322
|
onSettings: handlers.onSettings,
|
|
3323
|
-
disabled: !
|
|
3323
|
+
disabled: !userQuotaPermissions.canAdd()
|
|
3324
3324
|
}
|
|
3325
3325
|
);
|
|
3326
3326
|
}
|