diff --git a/marko/page/data/components/changes-page/component.js b/marko/page/data/components/changes-page/component.js index 31883cf..2819cd5 100644 --- a/marko/page/data/components/changes-page/component.js +++ b/marko/page/data/components/changes-page/component.js @@ -1,11 +1,27 @@ +const { changesApi } = require("../../../../../rpdata/api/Change") + + module.exports = class { onCreate(input) { this.state = { - characters: input.characters, + 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 } diff --git a/marko/page/data/components/changes-page/index.marko b/marko/page/data/components/changes-page/index.marko index 65ae451..e1175ec 100644 --- a/marko/page/data/components/changes-page/index.marko +++ b/marko/page/data/components/changes-page/index.marko @@ -3,10 +3,12 @@
All changes to listed resources is stored for 90 days for transparency reasons. The current state of an object after each change exists, but is only available through the GraphQL API at this time.
-