Skip to content

Commit

Permalink
change message with bold 'not' if primary (#9112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Monkeychip committed Jun 1, 2020
1 parent bf88fdc commit 6fa0f54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions ui/lib/core/addon/components/replication-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down Expand Up @@ -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 <b>not</b> 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.';
}),
});
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
</div>
{{/if}}
Expand Down

0 comments on commit 6fa0f54

Please sign in to comment.