Skip to content

Commit

Permalink
wip - console log statements to see if components are getting new attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
andaley committed May 14, 2020
1 parent 8d6b3f4 commit d05219b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/lib/core/addon/components/replication-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions ui/lib/core/addon/components/replication-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions ui/lib/replication/addon/components/replication-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d05219b

Please sign in to comment.