mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
Rename to isResizable
This commit is contained in:
parent
96ba7cc431
commit
d06af0d8fc
@ -152,7 +152,7 @@ const ModalForm = ({ onMetaChange, onSizeChange }) => {
|
||||
return (
|
||||
<>
|
||||
{metaFields}
|
||||
{fieldSizeInfo.resizable && sizeField}
|
||||
{fieldSizeInfo.isResizable && sizeField}
|
||||
{hasTimePicker && timeStepField}
|
||||
</>
|
||||
);
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import reducer from '../reducer';
|
||||
|
||||
const fieldSizes = {
|
||||
richtext: { default: 12, resizable: false },
|
||||
string: { default: 6, resizable: true },
|
||||
boolean: { default: 4, resizable: true },
|
||||
richtext: { default: 12, isResizable: false },
|
||||
string: { default: 6, isResizable: true },
|
||||
boolean: { default: 4, isResizable: true },
|
||||
};
|
||||
|
||||
describe('CONTENT MANAGER | CONTAINERS | EditSettingsView | reducer', () => {
|
||||
|
||||
@ -2,17 +2,17 @@
|
||||
|
||||
const needsFullSize = {
|
||||
default: 12,
|
||||
resizable: false,
|
||||
isResizable: false,
|
||||
};
|
||||
|
||||
const smallSize = {
|
||||
default: 4,
|
||||
resizable: true,
|
||||
isResizable: true,
|
||||
};
|
||||
|
||||
const defaultSize = {
|
||||
default: 6,
|
||||
resizable: true,
|
||||
isResizable: true,
|
||||
};
|
||||
|
||||
const fieldSizes = {
|
||||
|
||||
@ -12,7 +12,7 @@ const isAllowedFieldSize = (type, size) => {
|
||||
const fieldSize = getFieldSize(type);
|
||||
|
||||
// Check if field was locked to another size
|
||||
if (!fieldSize.resizable && size !== fieldSize.default) {
|
||||
if (!fieldSize.isResizable && size !== fieldSize.default) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user