mirror of
https://github.com/strapi/strapi.git
synced 2025-08-19 14:19:03 +00:00
Display layout button in prod mode
This commit is contained in:
parent
2b85c97c0e
commit
dc9dd4ccfd
@ -261,22 +261,16 @@ const ListPage = () => {
|
|||||||
|
|
||||||
// const listActions = isInDevelopmentMode ? [{ ...addButtonProps }] : [];
|
// const listActions = isInDevelopmentMode ? [{ ...addButtonProps }] : [];
|
||||||
const configureButtonProps = {
|
const configureButtonProps = {
|
||||||
icon: <LayoutIcon className="colored" />,
|
icon: <LayoutIcon className="colored" fill="#007eff" />,
|
||||||
color: 'secondary',
|
color: 'secondary',
|
||||||
label: formatMessage({ id: `${pluginId}.form.button.configure-view` }),
|
label: formatMessage({ id: `${pluginId}.form.button.configure-view` }),
|
||||||
onClick: goToCMSettingsPage,
|
onClick: goToCMSettingsPage,
|
||||||
|
style: { height: '30px' },
|
||||||
};
|
};
|
||||||
|
|
||||||
// const addButtonProps = {
|
|
||||||
// icon: true,
|
|
||||||
// color: 'primary',
|
|
||||||
// label: formatMessage({ id: `${pluginId}.button.attributes.add.another` }),
|
|
||||||
// onClick: handleClickAddAttributeMainData,
|
|
||||||
// };
|
|
||||||
|
|
||||||
const listActions = isInDevelopmentMode
|
const listActions = isInDevelopmentMode
|
||||||
? [{ ...configureButtonProps }, { ...addButtonProps }]
|
? [{ ...configureButtonProps }, { ...addButtonProps }]
|
||||||
: [];
|
: [configureButtonProps];
|
||||||
|
|
||||||
const handleClickOnTrashIcon = () => {};
|
const handleClickOnTrashIcon = () => {};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user