Simplifications

This commit is contained in:
Rene Pfeuffer
2019-10-01 13:21:08 +02:00
parent e0c40c645a
commit 7f657e5360
2 changed files with 19 additions and 27 deletions

View File

@@ -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 = () => {