88 // Show
99 SimpleShowLayout , Show ,
1010 // Actions
11- BulkDeleteButton , BulkExportButton , BulkUpdateButton , CreateButton , ExportButton ,
12- FilterButton , SelectColumnsButton , TopToolbar ,
11+ BulkDeleteButton , BulkExportButton , BulkUpdateButton , CloneButton , CreateButton ,
12+ ExportButton , FilterButton , ListButton , SelectColumnsButton , ShowButton , TopToolbar ,
1313 // Fields
1414 BooleanField , DateField , NumberField , ReferenceField , ReferenceManyField ,
1515 ReferenceOneField , SelectField , TextField ,
@@ -289,6 +289,14 @@ const AiohttpShow = (resource, name, permissions) => {
289289}
290290
291291const AiohttpEdit = ( resource , name , permissions ) => {
292+ const EditActions = ( ) => (
293+ < TopToolbar >
294+ < CloneButton />
295+ < ShowButton />
296+ < ListButton />
297+ </ TopToolbar >
298+ ) ;
299+
292300 const AiohttpEditToolbar = props => (
293301 < Toolbar { ...props } sx = { { display : "flex" , justifyContent : "space-between" } } >
294302 < SaveButton />
@@ -299,7 +307,7 @@ const AiohttpEdit = (resource, name, permissions) => {
299307 ) ;
300308
301309 return (
302- < Edit mutationMode = "pessimistic" >
310+ < Edit actions = { < EditActions /> } mutationMode = "pessimistic" >
303311 < SimpleForm toolbar = { < AiohttpEditToolbar /> } sanitizeEmptyValues warnWhenUnsavedChanges >
304312 { createInputs ( resource , name , "edit" , permissions ) }
305313 </ SimpleForm >
0 commit comments