mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
Simplifications
This commit is contained in:
@@ -127,19 +127,14 @@ class MultiPluginActionModal extends React.Component<Props, State> {
|
||||
};
|
||||
|
||||
renderModalContent = () => {
|
||||
const { actionType } = this.props;
|
||||
|
||||
if (actionType === MultiPluginActionType.UPDATE_ALL) {
|
||||
return this.renderUpdatable();
|
||||
} else {
|
||||
return (
|
||||
<>
|
||||
{this.renderInstallQueue()}
|
||||
{this.renderUpdateQueue()}
|
||||
{this.renderUninstallQueue()}
|
||||
</>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<>
|
||||
{this.renderUpdatable()}
|
||||
{this.renderInstallQueue()}
|
||||
{this.renderUpdateQueue()}
|
||||
{this.renderUninstallQueue()}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
renderUpdatable = () => {
|
||||
|
||||
Reference in New Issue
Block a user