Merge "fix: Fix the display of the row actions when the volume status is being created"

This commit is contained in:
Zuul 2022-08-09 03:05:45 +00:00 committed by Gerrit Code Review
commit 3d2e5af1b1

View File

@ -171,7 +171,7 @@ function DropdownActionButton({
dividerElement = <Divider type="vertical" />; dividerElement = <Divider type="vertical" />;
} }
if (allowedFatherCount === 1 && allowedAll === 1) { if (allowedFatherCount === 1 && allowedAll === 1 && actionButton) {
const className = isWide ? '' : styles['single-more-action']; const className = isWide ? '' : styles['single-more-action'];
moreElement = <span className={className}>{actionButton}</span>; moreElement = <span className={className}>{actionButton}</span>;
} else if (allowedFatherCount > 0) { } else if (allowedFatherCount > 0) {
@ -235,7 +235,6 @@ function getActionList(actions, item, containerProps) {
actionList.push(newAction); actionList.push(newAction);
} }
}); });
return { return {
actionList, actionList,
firstAction: newFirst, firstAction: newFirst,