mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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) {
|
if (isViewingAppConfigPage) {
|
||||||
locationService.replace(`${location.pathname}?page=${PluginTabIds.OVERVIEW}`);
|
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') {
|
if (plugin.type === 'app') {
|
||||||
dispatch(removePluginFromNavTree({ pluginID: plugin.id }));
|
dispatch(removePluginFromNavTree({ pluginID: plugin.id }));
|
||||||
setNeedReload?.(false);
|
setNeedReload?.(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user