From 6dfdc3d2bd27bc0482adc389048c67d206254af4 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Mon, 29 Jul 2019 14:41:01 -0300 Subject: [PATCH] regression --- app/setup-wizard/client/setupWizard.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/setup-wizard/client/setupWizard.js b/app/setup-wizard/client/setupWizard.js index 2a00f01c0341..f07f58b0ca84 100644 --- a/app/setup-wizard/client/setupWizard.js +++ b/app/setup-wizard/client/setupWizard.js @@ -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'] = ''; @@ -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() {