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.

14 lines
273 B

6 years ago
  1. const {logHeaderApi} = require("../../../../../rpdata/api/LogHeader")
  2. module.exports = class {
  3. onCreate(input) {
  4. this.state = {
  5. logs: input.logs
  6. }
  7. }
  8. onMount() {
  9. logHeaderApi.list({limit: 0}).then(logs => {
  10. this.state.logs = logs
  11. })
  12. }
  13. }