Skip to content

Commit

Permalink
Add this translation back in
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Nov 30, 2018
1 parent ace5aa3 commit 6f3b33d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ const getPageData = ($injector) => {
});
};

function makeUpgradeMessage(logstashVersions) {
function makeUpgradeMessage(logstashVersions, i18n) {
if (!Array.isArray(logstashVersions)
|| (logstashVersions.length === 0)
|| logstashVersions.some(isPipelineMonitoringSupportedInVersion)) {
return null;
}

return 'Pipeline monitoring is only available in Logstash version 6.0.0 or higher.';
return i18n('xpack.monitoring.logstash.pipelines.notAvalibleDescription', {
defaultMessage: 'Pipeline monitoring is only available in Logstash version 6.0.0 or higher.'
});
}

uiRoutes
Expand All @@ -67,7 +69,7 @@ uiRoutes
pageData: getPageData
},
controller: class LogstashPipelinesList extends MonitoringViewBaseEuiTableController {
constructor($injector, $scope) {
constructor($injector, $scope, i18n) {
super({
title: 'Logstash Pipelines',
storageKey: 'logstash.pipelines',
Expand Down Expand Up @@ -96,7 +98,7 @@ uiRoutes
}

const upgradeMessage = pageData
? makeUpgradeMessage(pageData.clusterStatus.versions)
? makeUpgradeMessage(pageData.clusterStatus.versions, i18n)
: null;

render(
Expand Down

0 comments on commit 6f3b33d

Please sign in to comment.