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.
32 lines
560 B
32 lines
560 B
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
|
|
}
|
|
}
|