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

Add a permalink to open security settings #545

Merged

Conversation

odelcroi
Copy link
Member

@odelcroi odelcroi commented Apr 17, 2023

close #540

links like this one : https://tchap.gouv.fr/#/sauvegarde-automatique

if the user is

  • connected : opens the security tab panel as mentionned in the issue
  • not connected : the login page, then the home page

Comment on lines +51 to +58
+ //:tchap:
+ if (screen === "sauvegarde-automatique") {
+ //open the security tab
+ //there is no anchor to sauvegarde-automatique subection
+ const payload: OpenToTabPayload = { action: Action.ViewUserSettings, initialTabId: UserTab.Security };
+ dis.dispatch(payload);
+ } else
+ //:tchap: end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si la personne n'est pas connecté, ça ouvre le pannel aussi ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to understand if Element Web supports it :
I've made a test with a url of type http://localhost:8080/#/room/xxxxx with a not connected browser, after login page I'm directed towards the home page. So I guess Element Web does not support it

@odelcroi odelcroi changed the title add a permalink to open security settings Add a permalink to open security settings Apr 18, 2023
@odelcroi odelcroi merged commit e7553b1 into develop_tchap Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

créer un permalien pour ouvrir le panel sécurité de Tchap sur l'ancre de la sauvegarde automatique
3 participants