const { changesApi } = require("../../../../../rpdata/api/Change") module.exports = class { onCreate(input) { this.state = { changes: input.changes, shownAll: false, modal: null, } } clearLimit(e) { // Disable mobile URL fallback. if (e && e.preventDefault) { e.preventDefault() } changesApi.list({limit: 0}).then(changes => { this.state.changes = changes this.state.shownAll = true }) } open(modal) { this.state.modal = modal } close() { this.state.modal = null } }