Release 1.7

Ajout d'un bouton "Retour au choix de semestre" dans la navbar
This commit is contained in:
Theal0 2021-06-28 22:33:53 +02:00
parent 5e00bd068c
commit 58756dcc22
2 changed files with 11 additions and 3 deletions

View File

@ -2,7 +2,7 @@
## Description ## Description
Version mobile de l'application web ScoDoc (v1.6) Version mobile de l'application web ScoDoc (v1.7)
### Fonctionnalités: ### Fonctionnalités:
- Login - Login

View File

@ -37,8 +37,16 @@ class ScoNavBar extends Component {
<Navbar.Toggle aria-controls="basic-navbar-nav" /> <Navbar.Toggle aria-controls="basic-navbar-nav" />
<Navbar.Collapse id="basic-navbar-nav"> <Navbar.Collapse id="basic-navbar-nav">
<Nav className="ml-auto"> <Nav className="ml-auto">
<Nav.Link href="/ScoDoc">Version Desktop</Nav.Link> <Button variant="outline-primary" href="/ScoDoc" style={{"margin": "1px"}}>Version Desktop</Button>
<Button variant="primary" onClick={() => {this.logout()}}>Déconnexion</Button> {window.location.href.split('/').length > 9 &&
<Button
variant="outline-primary"
href={"/ScoDoc/static/mobile/#/" + window.location.href.split('/')[7] + "/Scolarite"}
style={{"margin": "1px"}}>
Retour au choix de semestre
</Button>
}
<Button variant="primary" style={{"margin": "1px"}} onClick={() => {this.logout()}}>Déconnexion</Button>
</Nav> </Nav>
</Navbar.Collapse> </Navbar.Collapse>
</Container> </Container>