mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-19 14:02:13 +01:00
reformat
This commit is contained in:
@@ -112,33 +112,33 @@ class PluginsOverview extends React.Component<Props> {
|
||||
};
|
||||
|
||||
createActions = () => {
|
||||
const {pendingPlugins, collection} = this.props;
|
||||
const { pendingPlugins, collection } = this.props;
|
||||
return (
|
||||
<ButtonGroup>
|
||||
{pendingPlugins &&
|
||||
pendingPlugins._links &&
|
||||
pendingPlugins._links.execute && (
|
||||
<MultiPluginAction
|
||||
pendingPlugins={pendingPlugins}
|
||||
actionType={MultiPluginActionType.EXECUTE_PENDING}
|
||||
/>
|
||||
)}
|
||||
pendingPlugins._links &&
|
||||
pendingPlugins._links.execute && (
|
||||
<MultiPluginAction
|
||||
pendingPlugins={pendingPlugins}
|
||||
actionType={MultiPluginActionType.EXECUTE_PENDING}
|
||||
/>
|
||||
)}
|
||||
{pendingPlugins &&
|
||||
pendingPlugins._links &&
|
||||
pendingPlugins._links.cancel && (
|
||||
<MultiPluginAction
|
||||
pendingPlugins={pendingPlugins}
|
||||
actionType={MultiPluginActionType.CANCEL_PENDING}
|
||||
/>
|
||||
)}
|
||||
pendingPlugins._links &&
|
||||
pendingPlugins._links.cancel && (
|
||||
<MultiPluginAction
|
||||
pendingPlugins={pendingPlugins}
|
||||
actionType={MultiPluginActionType.CANCEL_PENDING}
|
||||
/>
|
||||
)}
|
||||
{collection &&
|
||||
collection._links &&
|
||||
!collection._links.update && (
|
||||
<MultiPluginAction
|
||||
installedPlugins={collection}
|
||||
actionType={MultiPluginActionType.UPDATE_ALL}
|
||||
/>
|
||||
)}
|
||||
collection._links &&
|
||||
collection._links.update && (
|
||||
<MultiPluginAction
|
||||
installedPlugins={collection}
|
||||
actionType={MultiPluginActionType.UPDATE_ALL}
|
||||
/>
|
||||
)}
|
||||
</ButtonGroup>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user