This is an automated email from the git hooks/post-receive script. New commit to branch hotfix/3.0.1 in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 567aa0d138e77fb4d5d6a9de234f417def067b63 Author: Kevin Morin <morin@codelutin.com> Date: Mon Oct 2 15:15:57 2017 +0200 fixes #154 The icons to log in through 3rd party providers do not display if I want to log in after my token expires --- pollen-ui-riot-js/src/main/web/js/Session.js | 2 ++ pollen-ui-riot-js/src/main/web/tag/SignIn.tag.html | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pollen-ui-riot-js/src/main/web/js/Session.js b/pollen-ui-riot-js/src/main/web/js/Session.js index 251dcd1c..4b0a4df3 100644 --- a/pollen-ui-riot-js/src/main/web/js/Session.js +++ b/pollen-ui-riot-js/src/main/web/js/Session.js @@ -99,6 +99,8 @@ class Session { var oldUser = this.user; this.user = user; bus.trigger("user", user, oldUser); + }).catch(() => { + bus.trigger("userNoMoreConnected"); }); } } diff --git a/pollen-ui-riot-js/src/main/web/tag/SignIn.tag.html b/pollen-ui-riot-js/src/main/web/tag/SignIn.tag.html index 3d1c9140..fa32e861 100644 --- a/pollen-ui-riot-js/src/main/web/tag/SignIn.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/SignIn.tag.html @@ -85,12 +85,21 @@ require("./components/HumanInput.tag.html"); this.authService = require("../js/AuthService"); this.loginProviders = []; + + this.listen("userNoMoreConnected", () => { + this.updateLoginProviders(); + }); + this.on("mount", () => { + this.updateLoginProviders(); + }); + + this.updateLoginProviders = () => { this.authService.getActiveLoginProviders().then((result) => { this.loginProviders = result; this.update(); }); - }); + }; this.newPassword = () => { this.refs.newPassword.open(this.refs.login.value || ""); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.