Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating user language in Panel: store doesn't get updated #1957

Closed
distantnative opened this issue Jul 30, 2019 · 3 comments

Comments

@distantnative
Copy link
Contributor

commented Jul 30, 2019

After changing my account language in the Panel, $store.state.user.current.language remains unchanged (only after reloading browser).

@mullema

This comment has been minimized.

Copy link

commented Sep 8, 2019

The user name has the same issue (and probably all user data aswell).

panel.plugin('test/plugin', {
  created(app) {
    app.$events.$on("user.changeName", () => {
      console.log(app.$store.state.user.current.name)
    });
  }
});
@mullema

This comment has been minimized.

Copy link

commented Sep 8, 2019

My current fix looks like this:

app.$events.$on("user.changeName", () => {
   app.$store.dispatch("user/load");
});
@bastianallgeier

This comment has been minimized.

Copy link
Contributor

commented Sep 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.