From a1b4c8867aa8351397c67bb461c0d578602080f1 Mon Sep 17 00:00:00 2001 From: starnakin Date: Tue, 13 Feb 2024 13:06:55 +0100 Subject: [PATCH] authentify: clear current_mode on leave --- frontend/static/js/views/accounts/AuthentifyView.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/static/js/views/accounts/AuthentifyView.js b/frontend/static/js/views/accounts/AuthentifyView.js index 27733f8..9804757 100644 --- a/frontend/static/js/views/accounts/AuthentifyView.js +++ b/frontend/static/js/views/accounts/AuthentifyView.js @@ -12,6 +12,11 @@ export default class extends AbstractNonAuthentifiedView this.current_mode = undefined } + async leavePage() + { + this.current_mode = undefined; + } + /** * @returns {Promise} */