1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

stop, timer, please

This commit is contained in:
irismarie 2021-02-05 19:22:12 +01:00
parent a8b753df08
commit 830448a9bd

View file

@ -28,6 +28,7 @@ import NotificationsFactory from "../common/data-managers/notifications-factory"
class LoginComplete extends React.Component {
constructor(props) {
console.log("LoginComplete constructor");
super(props);
AppDispatcher.dispatch({
@ -38,7 +39,7 @@ class LoginComplete extends React.Component {
loginMessage: '',
token: '',
currentUser: '',
secondsToWait: 5,
secondsToWait: 99,
}
this.timer = 0;
@ -46,7 +47,12 @@ class LoginComplete extends React.Component {
this.countDown = this.countDown.bind(this);
this.stopTimer = this.stopTimer.bind(this);
}
componentDidMount() {
this.startTimer();
this.setState({secondsToWait: 5});
}