CEC-4640: add bulk add to fleet (#384)
* refactor bulkactions component * refactor bulk actions * update dom tests * add addToFleet hook * make signal optional * implement code splitting * add deps * remove test label
This commit is contained in:
@@ -156,7 +156,7 @@ exports[`FleetDetailsTab Render 1`] = `
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
Update Configs
|
||||
Add Tags
|
||||
<span
|
||||
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
||||
/>
|
||||
@@ -165,6 +165,7 @@ exports[`FleetDetailsTab Render 1`] = `
|
||||
aria-haspopup="menu"
|
||||
aria-label="select action"
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedContained MuiButtonGroup-groupedContainedHorizontal MuiButtonGroup-groupedContainedPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedContained MuiButtonGroup-groupedContainedHorizontal MuiButtonGroup-groupedContainedPrimary css-11qr2p8-MuiButtonBase-root-MuiButton-root"
|
||||
data-testid="dropdown-button-expand"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
|
||||
@@ -96,7 +96,7 @@ const MainForm = ({ name }) => {
|
||||
</Tooltip>
|
||||
</Grid>
|
||||
<Grid item md={12} className={classes.textCenterAlign}>
|
||||
<BulkActions vins={fleet.vehicles} />
|
||||
<BulkActions vins={fleet.vehicles} actions={["addTags", "updateConfig"]} />
|
||||
</Grid>
|
||||
</Grid>
|
||||
<DeleteConfirmation message={name} open={showDeleteModal} close={() => setShowDeleteModal(false)} deleteFunction={onDelete} />
|
||||
|
||||
Reference in New Issue
Block a user