Skip to content
Snippets Groups Projects
Commit ec074635 authored by vkovtun's avatar vkovtun
Browse files

SSDM-13579: Added disabling logic for the Rename button.

parent fe373c6f
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -113,7 +113,6 @@ class LeftToolbar extends React.Component {
this.closeDeleteDialog()
await this.controller.delete(Array.from(multiselectedFiles).map((file) => file.path))
// await this.controller.delete(multiselectedFiles)
}
handleDeleteCancel() {
......@@ -146,7 +145,7 @@ class LeftToolbar extends React.Component {
}
renderSelectionContextToolbar() {
const { classes, buttonSize } = this.props
const { classes, buttonSize, multiselectedFiles } = this.props
const { width, hiddenButtonsPopup, deleteDialogOpen } = this.state
const ellipsisButtonSize = 24
......@@ -184,6 +183,7 @@ class LeftToolbar extends React.Component {
color={color}
size={buttonSize}
variant='text'
disabled={multiselectedFiles.size !== 1}
startIcon={<RenameIcon />}
>
{messages.get(messages.RENAME)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment