Skip to content

Commit

Permalink
Regression: getSetupWizardParameters (#15067)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Jul 29, 2019
1 parent 6f01c89 commit 34f24f4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/setup-wizard/client/setupWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ Template.setupWizard.onCreated(async function() {
const state = (jsonString && JSON.parse(jsonString)) || statusDefault;
this.state.set(state);

this.autorun(async () => {
if (!Meteor.userId()) {
return;
}
const { settings, allowStandaloneServer } = await call('getSetupWizardParameters') || {};
this.wizardSettings.set(settings);
this.allowStandaloneServer.set(allowStandaloneServer);
});

this.autorun(() => {
const state = this.state.all();
state['registration-pass'] = '';
Expand Down Expand Up @@ -149,10 +158,6 @@ Template.setupWizard.onCreated(async function() {
this.state.set('registration-pass', '');
}
});

const { settings, allowStandaloneServer } = await call('getSetupWizardParameters') || {};
this.wizardSettings.set(settings);
this.allowStandaloneServer.set(allowStandaloneServer);
});

Template.setupWizard.onRendered(function() {
Expand Down

0 comments on commit 34f24f4

Please sign in to comment.