From d05219ba6c14c64a9f2e867892476faf7dad4659 Mon Sep 17 00:00:00 2001 From: Noelle Daley Date: Wed, 13 May 2020 18:21:13 -0700 Subject: [PATCH] wip - console log statements to see if components are getting new attrs --- ui/lib/core/addon/components/replication-dashboard.js | 6 ++++++ ui/lib/core/addon/components/replication-page.js | 1 + ui/lib/replication/addon/components/replication-summary.js | 1 + 3 files changed, 8 insertions(+) diff --git a/ui/lib/core/addon/components/replication-dashboard.js b/ui/lib/core/addon/components/replication-dashboard.js index e0d3a1ca95f5..f5e71868ac30 100644 --- a/ui/lib/core/addon/components/replication-dashboard.js +++ b/ui/lib/core/addon/components/replication-dashboard.js @@ -9,6 +9,12 @@ export default Component.extend({ data: null, replicationDetails: null, isSecondary: null, + + didReceiveAttrs() { + this._super(arguments); + console.log('the dashboard component received new attrs!'); + }, + isSyncing: computed('replicationDetails.{state}', 'isSecondary', function() { const { state } = this.replicationDetails; const isSecondary = this.isSecondary; diff --git a/ui/lib/core/addon/components/replication-page.js b/ui/lib/core/addon/components/replication-page.js index e68e76838d86..e14b977642ee 100644 --- a/ui/lib/core/addon/components/replication-page.js +++ b/ui/lib/core/addon/components/replication-page.js @@ -17,6 +17,7 @@ export default Component.extend({ didReceiveAttrs() { this._super(arguments); this.getReplicationModeStatus.perform(); + console.log('did the page receive new attrs???'); }, getReplicationModeStatus: task(function*() { let resp; diff --git a/ui/lib/replication/addon/components/replication-summary.js b/ui/lib/replication/addon/components/replication-summary.js index 078946f519fd..5e4d4140b817 100644 --- a/ui/lib/replication/addon/components/replication-summary.js +++ b/ui/lib/replication/addon/components/replication-summary.js @@ -28,6 +28,7 @@ export default Component.extend(ReplicationActions, DEFAULTS, { if (initialReplicationMode) { this.set('replicationMode', initialReplicationMode); } + console.log('did the summary receive new attrs?'); }, showModeSummary: false, initialReplicationMode: null,