fix: Fix the display of the row actions when the volume status is being created
Fix: when the volume's status is being created, the sub menu actions in the row actions are hidden. Trigger reason: When the More Actions drop-down menu contains disabled actions and the only submenu that can be used normally, the submenu items are not displayed successfully Change-Id: Ide3f06716d1df71593fd654f24feedabe4f68da7
This commit is contained in:
parent
70fd56a9b1
commit
2543838a5e
@ -171,7 +171,7 @@ function DropdownActionButton({
|
||||
dividerElement = <Divider type="vertical" />;
|
||||
}
|
||||
|
||||
if (allowedFatherCount === 1 && allowedAll === 1) {
|
||||
if (allowedFatherCount === 1 && allowedAll === 1 && actionButton) {
|
||||
const className = isWide ? '' : styles['single-more-action'];
|
||||
moreElement = <span className={className}>{actionButton}</span>;
|
||||
} else if (allowedFatherCount > 0) {
|
||||
@ -235,7 +235,6 @@ function getActionList(actions, item, containerProps) {
|
||||
actionList.push(newAction);
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
actionList,
|
||||
firstAction: newFirst,
|
||||
|
Loading…
Reference in New Issue
Block a user