Plugins: Add uninstall requested message for cloud plugins (#79748)

This commit is contained in:
Hugo Kiyodi Oshiro 2023-12-20 14:47:11 +01:00 committed by GitHub
parent 0db19a7924
commit edddbe1f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,13 @@ export function InstallControlsButton({
if (isViewingAppConfigPage) {
locationService.replace(`${location.pathname}?page=${PluginTabIds.OVERVIEW}`);
}
appEvents.emit(AppEvents.alertSuccess, [`Uninstalled ${plugin.name}`]);
let successMessage = `Uninstalled ${plugin.name}`;
if (config.pluginAdminExternalManageEnabled && configCore.featureToggles.managedPluginsInstall) {
successMessage = 'Uninstall requested, this may take a few minutes.';
}
appEvents.emit(AppEvents.alertSuccess, [successMessage]);
if (plugin.type === 'app') {
dispatch(removePluginFromNavTree({ pluginID: plugin.id }));
setNeedReload?.(false);