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.

19 lines
255 B

  1. module.exports = class {
  2. onCreate() {
  3. this.state = {
  4. modal: null,
  5. deleted: false,
  6. }
  7. }
  8. open(modal) {
  9. this.state.modal = modal
  10. }
  11. close() {
  12. this.state.modal = null
  13. }
  14. removed() {
  15. this.state.deleted = true
  16. }
  17. }