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 = [
|
const menuItems = [
|
||||||
{
|
{
|
||||||
key: 'excel',
|
key: 'excel',
|
||||||
label: excelLoading ? 'Exporting...' : 'Microsoft Excel',
|
label: excelLoading ? 'Exporting...' : 'Excel File',
|
||||||
icon: <ExcelIcon />,
|
icon: <ExcelIcon />,
|
||||||
disabled: exportLoading,
|
disabled: exportLoading,
|
||||||
children: [
|
children: [
|
||||||
@ -54,12 +54,6 @@ const ExportListButton = ({
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 'odata',
|
|
||||||
label: 'OData Connection',
|
|
||||||
icon: <ODataIcon />,
|
|
||||||
onClick: () => setOdataModalOpen(true)
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 'csv',
|
key: 'csv',
|
||||||
label: csvLoading ? 'Exporting...' : 'CSV File',
|
label: csvLoading ? 'Exporting...' : 'CSV File',
|
||||||
@ -73,6 +67,15 @@ const ExportListButton = ({
|
|||||||
setCsvLoading(false)
|
setCsvLoading(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'divider'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'odata',
|
||||||
|
label: 'OData Connection',
|
||||||
|
icon: <ODataIcon />,
|
||||||
|
onClick: () => setOdataModalOpen(true)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user