Skip to content

Commit

Permalink
Change position of search box in object lists
Browse files Browse the repository at this point in the history
  • Loading branch information
nosaraei committed Feb 9, 2023
1 parent f1450f1 commit 9239c8f
Showing 1 changed file with 31 additions and 27 deletions.
58 changes: 31 additions & 27 deletions src/sections/ObjectsList/ObjectsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,34 +457,10 @@ const ObjectsList = () => {
<IconButton onClick={handleBackToBuckets}><BackIcon fontSize="small" /></IconButton>
<span style={{fontSize: '16px', fontWeight: '700'}}>Bucket {mountedBucket}</span>
</div>
<ActionMenu buttonTitle="Batch operation" disabled={!selectionModel.length}>
<MenuItem onClick={handleBulkDownloadObjects}>
<ListItemIcon>
<CloudDownloadOutlinedIcon fontSize="small" />
</ListItemIcon>
<ListItemText>Download objects</ListItemText>
</MenuItem>
<MenuItem onClick={handleBulkSetPublic}>
<ListItemIcon>
<PublicIcon fontSize="small" />
</ListItemIcon>
<ListItemText>Access public read</ListItemText>
</MenuItem>
<MenuItem onClick={handleBulkSetPrivate}>
<ListItemIcon>
<PublicOffIcon fontSize="small" />
</ListItemIcon>
<ListItemText>Remove public read access</ListItemText>
</MenuItem>
<MenuItem onClick={handleBulkDeleteObjects}>
<ListItemIcon>
<DeleteIcon fontSize="small" />
</ListItemIcon>
<ListItemText>Delete objects</ListItemText>
</MenuItem>
</ActionMenu>

<div style={{
marginTop: '-40px',
marginLeft: '-120px'
}}>
<TextField
size="small"
Expand All @@ -496,8 +472,36 @@ const ObjectsList = () => {
onChange={(e) => setSearchKey(e.target.value)}
/>
</div>
<Stack direction="row" justifyContent="space-between" sx={{gap: '1rem'}}>
<ActionMenu buttonTitle="Batch operation" disabled={!selectionModel.length}>
<MenuItem onClick={handleBulkDownloadObjects}>
<ListItemIcon>
<CloudDownloadOutlinedIcon fontSize="small" />
</ListItemIcon>
<ListItemText>Download objects</ListItemText>
</MenuItem>
<MenuItem onClick={handleBulkSetPublic}>
<ListItemIcon>
<PublicIcon fontSize="small" />
</ListItemIcon>
<ListItemText>Access public read</ListItemText>
</MenuItem>
<MenuItem onClick={handleBulkSetPrivate}>
<ListItemIcon>
<PublicOffIcon fontSize="small" />
</ListItemIcon>
<ListItemText>Remove public read access</ListItemText>
</MenuItem>
<MenuItem onClick={handleBulkDeleteObjects}>
<ListItemIcon>
<DeleteIcon fontSize="small" />
</ListItemIcon>
<ListItemText>Delete objects</ListItemText>
</MenuItem>
</ActionMenu>
<Button onClick={() => setUploadBoxDialog({open: true})} variant="contained" startIcon={<CloudUploadIcon />}>Upload</Button>
</Stack>

<Button onClick={() => setUploadBoxDialog({open: true})} variant="contained" startIcon={<CloudUploadIcon />}>Upload</Button>
</Stack>

<ObjectUploadBoxDialog
Expand Down

0 comments on commit 9239c8f

Please sign in to comment.