Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Set Event Stage Doesn't Work in Admin User Portal #96

Open
SLiNv opened this issue Feb 17, 2019 · 0 comments
Open

Set Event Stage Doesn't Work in Admin User Portal #96

SLiNv opened this issue Feb 17, 2019 · 0 comments

Comments

@SLiNv
Copy link

SLiNv commented Feb 17, 2019

I was looking through the codes, found the following listener in client/script/user/server_settings.js

// event stage
  'change .event-stage': function(e) {
    var stage = $(e.target).attr('value');
    console.log(stage)
    Meteor.users.update({ '_id': Meteor.userId() }, {
      $set: {
        'settings.event_stage': stage
      }
    });
  }

and I see that the router has a switch based on settings.public.enent_state
switch (Meteor.settings.public.event_state)

But when I change the Event Stage settings in the admin's user portal, the homepage won't change accordingly. It will stay with what ever stage I set in the settings.json (the initial state when the meteor is started). Am I missing something here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant