The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
325 B

  1. module.exports = class {
  2. onCreate() {
  3. this.state = {
  4. loggingIn: false,
  5. loggingOut: false,
  6. enabled: false,
  7. }
  8. }
  9. toggleEnabled() {
  10. this.state.enabled = !this.state.enabled
  11. }
  12. loginClicked() {
  13. this.state.loggingIn = true
  14. }
  15. logoutClicked() {
  16. this.state.loggingOut = true
  17. }
  18. }