mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
Replace hard reload with refresh
This commit is contained in:
@@ -15,6 +15,7 @@ type Props = {
|
||||
actionType: string,
|
||||
pendingPlugins?: PendingPlugins,
|
||||
installedPlugins?: PluginCollection,
|
||||
refresh: () => void,
|
||||
|
||||
// context props
|
||||
t: (key: string, params?: Object) => string
|
||||
@@ -57,7 +58,7 @@ class MultiPluginAction extends React.Component<Props, State> {
|
||||
|
||||
renderModal = () => {
|
||||
const { showModal } = this.state;
|
||||
const { pendingPlugins, installedPlugins, actionType } = this.props;
|
||||
const { pendingPlugins, installedPlugins, actionType, refresh } = this.props;
|
||||
if (showModal) {
|
||||
return (
|
||||
<MultiPluginActionModal
|
||||
@@ -72,6 +73,7 @@ class MultiPluginAction extends React.Component<Props, State> {
|
||||
: installedPlugins
|
||||
}
|
||||
onClose={this.toggleModal}
|
||||
refresh={refresh}
|
||||
actionType={actionType}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user