-
Notifications
You must be signed in to change notification settings - Fork 11
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
Revoit la navigation entre les pages #937
base: main
Are you sure you want to change the base?
Revoit la navigation entre les pages #937
Conversation
a0a950a
to
345782e
Compare
345782e
to
9e409ce
Compare
c2751d6
to
c537847
Compare
go 🚀 |
2 remarques :
|
c537847
to
704f18e
Compare
En mode connecté, lorsqu'on va sur le tableau de bord d'un audit qui n'est pas "à nous", il est impossible d’accéder à la page d'audit. |
<div class="content"> | ||
<h1 class="fr-mb-6w">{{ audit.procedureName }}</h1> | ||
<template v-if="isConnected"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changer la condition de is connected
à is connected and owns this audit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sinon lorsqu'on est connecté, et qu'on va sur un audit pas associé avec son compte, on ne peut pas accéder à l'audit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai mis à jour la condition dans le composable @hissalht : https://github.com/DISIC/Ara/pull/937/files#diff-ed27a5641120e504e7dd07cf561a6efca83df0f737180688ab5972dbc144b8feR8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ouais t'as directement changé le code de isConnected
. Je m'attendais à changer la condition directement dans le fichier.
C'est fine mais faudrait renommer isConnected
je pense. Quand je lis isConnected
je m'attends pas à ce qu'il y ait autre chose de checké que "est-ce que l'utilisateur est connecté"
D'ailleurs, est-ce que ça serait pas plutôt "isLoggedIn" ou "isSignedIn" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oui effectivement le composable check juste si on est connecté. Et j'ai bougé l'autre condition aux 2 endroits où je m'en servais.
7d002cb
to
112b202
Compare
closes #853