Improved export button ui.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
This commit is contained in:
parent
1558e93b63
commit
8150372fda
@ -34,7 +34,7 @@ const ExportListButton = ({
|
||||
const menuItems = [
|
||||
{
|
||||
key: 'excel',
|
||||
label: excelLoading ? 'Exporting...' : 'Microsoft Excel',
|
||||
label: excelLoading ? 'Exporting...' : 'Excel File',
|
||||
icon: <ExcelIcon />,
|
||||
disabled: exportLoading,
|
||||
children: [
|
||||
@ -54,12 +54,6 @@ const ExportListButton = ({
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
key: 'odata',
|
||||
label: 'OData Connection',
|
||||
icon: <ODataIcon />,
|
||||
onClick: () => setOdataModalOpen(true)
|
||||
},
|
||||
{
|
||||
key: 'csv',
|
||||
label: csvLoading ? 'Exporting...' : 'CSV File',
|
||||
@ -73,6 +67,15 @@ const ExportListButton = ({
|
||||
setCsvLoading(false)
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'divider'
|
||||
},
|
||||
{
|
||||
key: 'odata',
|
||||
label: 'OData Connection',
|
||||
icon: <ODataIcon />,
|
||||
onClick: () => setOdataModalOpen(true)
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user