diff --git a/scm-ui/ui-webapp/public/locales/de/admin.json b/scm-ui/ui-webapp/public/locales/de/admin.json index 7c2636d6a1..fd4fc0a08d 100644 --- a/scm-ui/ui-webapp/public/locales/de/admin.json +++ b/scm-ui/ui-webapp/public/locales/de/admin.json @@ -68,7 +68,7 @@ "version": "Version", "currentVersion": "Installierte Version", "newVersion": "Neue Version", - "cloudoguInstallInfo": "Dieses Plugin ist nur über myCloudogu erhältlich. Zum Installieren folgen Sie bitte der Anleitung.", + "cloudoguInstallInfo": "Dieses Plugin ist exklusiv über myCloudogu erhältlich. Zum Installieren folgen Sie bitte der Anleitung.", "cloudoguInstall": "Zur Installationsanleitung", "dependencyNotification": "Mit diesem Plugin werden folgende Abhängigkeiten mit installiert bzw. aktualisiert, wenn sie noch nicht in der aktuellen Version vorhanden sind!", "optionalDependencyNotification": "Mit diesem Plugin werden folgende optionale Abhängigkeiten mit aktualisiert, falls sie installiert sind!", diff --git a/scm-ui/ui-webapp/public/locales/en/admin.json b/scm-ui/ui-webapp/public/locales/en/admin.json index f8adebd13e..8338113b5d 100644 --- a/scm-ui/ui-webapp/public/locales/en/admin.json +++ b/scm-ui/ui-webapp/public/locales/en/admin.json @@ -68,7 +68,7 @@ "version": "Version", "currentVersion": "Installed version", "newVersion": "New version", - "cloudoguInstallInfo": "This plugin is only available via myCloudogu. Follow the instructions to install it.", + "cloudoguInstallInfo": "This plugin is exclusively available via myCloudogu. Follow the instructions to install it.", "cloudoguInstall": "To Installation Instructions", "dependencyNotification": "With this plugin, the following dependencies will be installed/updated if their latest versions are not installed yet!", "optionalDependencyNotification": "With this plugin, the following optional dependencies will be updated if they are installed!", diff --git a/scm-ui/ui-webapp/src/admin/plugins/components/PluginEntry.tsx b/scm-ui/ui-webapp/src/admin/plugins/components/PluginEntry.tsx index 02f01b95be..e01e5b45fb 100644 --- a/scm-ui/ui-webapp/src/admin/plugins/components/PluginEntry.tsx +++ b/scm-ui/ui-webapp/src/admin/plugins/components/PluginEntry.tsx @@ -60,6 +60,18 @@ const PluginEntry: FC = ({ plugin, openModal }) => { const isUninstallable = plugin._links.uninstall && (plugin._links.uninstall as Link).href; const isCloudoguPlugin = plugin.type === "CLOUDOGU"; + const evaluateAction = () => { + if (isInstallable) { + return () => openModal({ plugin, action: PluginAction.INSTALL }); + } + + if (isCloudoguPlugin) { + return () => openModal({ plugin, action: PluginAction.CLOUDOGU }); + } + + return undefined; + }; + const pendingSpinner = () => ( ); @@ -91,7 +103,7 @@ const PluginEntry: FC = ({ plugin, openModal }) => { return ( <> openModal({ plugin, action: PluginAction.INSTALL }) : undefined} + action={evaluateAction()} avatar={} title={plugin.displayName ? {plugin.displayName} : {plugin.name}} description={plugin.description}