{{ 'XP.Plugin.InstallPlugin' | translate: { Default: 'Install Plugin' } }}
@if (systemPluginUnavailableInCurrentScope()) {

{{ 'XP.Plugin.SystemPluginTenantScopeRequired' | translate: { Default: 'System and tenant-level plugins can only be installed from tenant scope.' } }}

} @else if (installedVersion() === pluginVersion()) {

{{ 'XP.Plugin.PluginAlreadyInstalled' | translate: { Default: 'The latest version of this plugin is already installed' } }}

} @else { @if (status() === 'installed') {

{{ 'XP.Plugin.PluginInstalled' | translate: { Default: 'Plugin Installed' } }}

} @else if (status() === 'installing') {

{{ 'XP.Plugin.PluginInstalling' | translate: { Default: 'Installing Plugin' } }}

} @else if (status() === 'error') {

{{ 'XP.Plugin.PluginInstallError' | translate: { Default: 'Plugin installation failed, please try again' } }}

} @else {

{{ 'XP.Plugin.PluginWillInstall' | translate: { Default: 'The following plugin will be installed' } }}

} @if (error()) {

{{ error() }}

} @if (restartRequired()) {

{{ 'XP.Plugin.RestartRequired' | translate : { Default: 'Plugin changes were staged successfully. Restart the API service to activate them.' } }}

} }
@if (installedVersion() && installedVersion() !== pluginVersion()) {
{{ installedVersion() }} -> {{ pluginVersion() }}
} @else {
{{ pluginVersion() }}
}
@if (status() === 'installing') { }
@if (status() === 'installed' && restartRequired()) { @if (!runtimeRestart.canRestart()) {
{{ runtimeRestart.restartUnavailableMessageKey() | translate: { Default: 'Ask a SuperAdmin in the default tenant scope to restart the API service.' } }}
} @if (runtimeRestart.canRestart()) { } } @else if ( systemPluginUnavailableInCurrentScope() || status() === 'installed' || installedVersion() === pluginVersion() ) { } @else { }