mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Plugins: Add uninstall requested message for cloud plugins (#79748)
This commit is contained in:
parent
0db19a7924
commit
edddbe1f53
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user