Files
frontend/marko/components/menu/component.js
T
2018-11-01 20:56:24 +01:00

21 lines
325 B
JavaScript

module.exports = class {
onCreate() {
this.state = {
loggingIn: false,
loggingOut: false,
enabled: false,
}
}
toggleEnabled() {
this.state.enabled = !this.state.enabled
}
loginClicked() {
this.state.loggingIn = true
}
logoutClicked() {
this.state.loggingOut = true
}
}