Skip to content

Commit

Permalink
make sure we update isSyncing when state has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
andaley committed May 14, 2020
1 parent 4abcd03 commit 8d6b3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/lib/core/addon/components/replication-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default Component.extend({
data: null,
replicationDetails: null,
isSecondary: null,
isSyncing: computed('replicationDetails', 'isSecondary', function() {
isSyncing: computed('replicationDetails.{state}', 'isSecondary', function() {
const { state } = this.replicationDetails;
const isSecondary = this.isSecondary;
return isSecondary && state && clusterStates([state]).isSyncing;
Expand Down

0 comments on commit 8d6b3f4

Please sign in to comment.