mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 12:36:02 +02:00
Hide plugin dependencies on uninstall (#1977)
When uninstalling a plugin, there should be no notification about installing or updating plugins.
This commit is contained in:
2
gradle/changelog/delete_plugin_dependencies.yaml
Normal file
2
gradle/changelog/delete_plugin_dependencies.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Hide plugin dependencies on uninstall ([#1977](https://github.com/scm-manager/scm-manager/pull/1977))
|
||||
@@ -129,7 +129,7 @@ const PluginModal: FC<Props> = ({ onClose, pluginAction, plugin }) => {
|
||||
|
||||
const renderDependencies = () => {
|
||||
let dependencies = null;
|
||||
if (plugin.dependencies && plugin.dependencies.length > 0) {
|
||||
if (pluginAction !== PluginAction.UNINSTALL && plugin.dependencies && plugin.dependencies.length > 0) {
|
||||
dependencies = (
|
||||
<div className="media">
|
||||
<Notification type="warning">
|
||||
@@ -148,7 +148,11 @@ const PluginModal: FC<Props> = ({ onClose, pluginAction, plugin }) => {
|
||||
|
||||
const renderOptionalDependencies = () => {
|
||||
let optionalDependencies = null;
|
||||
if (plugin.optionalDependencies && plugin.optionalDependencies.length > 0) {
|
||||
if (
|
||||
pluginAction !== PluginAction.UNINSTALL &&
|
||||
plugin.optionalDependencies &&
|
||||
plugin.optionalDependencies.length > 0
|
||||
) {
|
||||
optionalDependencies = (
|
||||
<div className="media">
|
||||
<Notification type="warning">
|
||||
|
||||
Reference in New Issue
Block a user