discord-client/webpack/lib/popup-controller.js

20 lines
393 B
JavaScript

export class PopupController{
/* (1) Construct default attributes
*
---------------------------------------------------------*/
constructor(){
/* (1) Popups */
this.croom = {
active: false,
type: 'text',
name: '',
reset(){ this.active = false; this.type = 'text'; this.name = ''; },
submit(){ gs.get.room.create(this.type, this.name) && this.reset(); }
}
}
}