Simplify naming in PluginsTabPanel.
This commit is contained in:
parent
b18e1705cd
commit
5e6cd11028
|
@ -60,10 +60,8 @@ export const PluginsTabPanel = ( {
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
const { installAndActivatePlugins } = useDispatch( PLUGINS_STORE_NAME );
|
const { installAndActivatePlugins } = useDispatch( PLUGINS_STORE_NAME );
|
||||||
const {
|
const { loadInstalledPluginsAfterActivation } =
|
||||||
loadInstalledPluginsAfterActivation:
|
useInstalledPluginsWithoutChannels();
|
||||||
loadInstalledExtensionsAfterActivation,
|
|
||||||
} = useInstalledPluginsWithoutChannels();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Install and activate a plugin.
|
* Install and activate a plugin.
|
||||||
|
@ -88,7 +86,7 @@ export const PluginsTabPanel = ( {
|
||||||
] );
|
] );
|
||||||
|
|
||||||
onInstallAndActivate( plugin.product );
|
onInstallAndActivate( plugin.product );
|
||||||
loadInstalledExtensionsAfterActivation( plugin.product );
|
loadInstalledPluginsAfterActivation( plugin.product );
|
||||||
createNoticesFromResponse( response );
|
createNoticesFromResponse( response );
|
||||||
} catch ( error ) {
|
} catch ( error ) {
|
||||||
createNoticesFromResponse( error );
|
createNoticesFromResponse( error );
|
||||||
|
|
Loading…
Reference in New Issue