mirror of
https://github.com/strapi/strapi.git
synced 2025-08-19 06:08:50 +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 configureButtonProps = {
|
||||
icon: <LayoutIcon className="colored" />,
|
||||
icon: <LayoutIcon className="colored" fill="#007eff" />,
|
||||
color: 'secondary',
|
||||
label: formatMessage({ id: `${pluginId}.form.button.configure-view` }),
|
||||
onClick: goToCMSettingsPage,
|
||||
style: { height: '30px' },
|
||||
};
|
||||
|
||||
// const addButtonProps = {
|
||||
// icon: true,
|
||||
// color: 'primary',
|
||||
// label: formatMessage({ id: `${pluginId}.button.attributes.add.another` }),
|
||||
// onClick: handleClickAddAttributeMainData,
|
||||
// };
|
||||
|
||||
const listActions = isInDevelopmentMode
|
||||
? [{ ...configureButtonProps }, { ...addButtonProps }]
|
||||
: [];
|
||||
: [configureButtonProps];
|
||||
|
||||
const handleClickOnTrashIcon = () => {};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user