From e122e3e7141634026f06645c15527851a5ca8de4 Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Mon, 1 Jun 2020 10:37:14 -0600 Subject: [PATCH] change message with bold 'not' if primary --- ui/lib/core/addon/components/replication-dashboard.js | 9 +++++++++ .../addon/templates/components/replication-dashboard.hbs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ui/lib/core/addon/components/replication-dashboard.js b/ui/lib/core/addon/components/replication-dashboard.js index 2c0e8653cf5a..650a7ec24757 100644 --- a/ui/lib/core/addon/components/replication-dashboard.js +++ b/ui/lib/core/addon/components/replication-dashboard.js @@ -2,6 +2,7 @@ import Component from '@ember/component'; import { computed } from '@ember/object'; import { clusterStates } from 'core/helpers/cluster-states'; import { capitalize } from '@ember/string'; +import { htmlSafe } from '@ember/template'; import layout from '../templates/components/replication-dashboard'; /** @@ -90,4 +91,12 @@ export default Component.extend({ return drState; } ), + reindexMessage: computed('isSecondary', 'progressBar', function() { + if (!this.isSecondary) { + return htmlSafe( + 'This can cause a delay depending on the size of the data store. You can not use Vault during this time.' + ); + } + return 'This can cause a delay depending on the size of the data store. You can use Vault during this time.'; + }), }); diff --git a/ui/lib/core/addon/templates/components/replication-dashboard.hbs b/ui/lib/core/addon/templates/components/replication-dashboard.hbs index 49c7ee939775..6c1734b2e84a 100644 --- a/ui/lib/core/addon/templates/components/replication-dashboard.hbs +++ b/ui/lib/core/addon/templates/components/replication-dashboard.hbs @@ -5,7 +5,7 @@ @title={{concat "Re-indexing in progress" reindexingStage}} @type="info" @progressBar={{progressBar}} - @message="This can cause a delay depending on the size of the data store. You can use Vault during this time." + @message={{reindexMessage}} data-test-isReindexing /> {{/if}}