Commit a267aedd authored by Grégor JOUET's avatar Grégor JOUET 🔧
Browse files

Fix no refresh

parent 300f2581
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -266,6 +266,7 @@ export default {
      this.imprInfoKey += 1;
    },
    stop_reload() {
      console.log("[DEBUG] Stop reload")
      this.$emit("stopReload");
    },
    start_reload() {
+14 −11
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ export default {
  mounted () {
    this.$store.dispatch('load_queues')
    .then((resp) => {
      this.reload()
      this.do_reload()
    })
  },
  components: {
@@ -202,8 +202,7 @@ export default {
      this.reject_diag = false
      this.$emit('startReload')
    },
    reload () {
      this.$store.dispatch("update_requests", {status: [], no_load: false}).then((resp) => {
    do_reload() {
      var o = this.$store.state.admin_requests_dict[this.id]
      this.title = o.title
      this.fullname = o.fullname,
@@ -214,6 +213,10 @@ export default {
      setTimeout(() => {
        this.queue = o.queue ? this.all_queues.filter((elem) => {return elem.id == o.queue})[0] : null;
      }, 300)
    }
    reload () {
      this.$store.dispatch("update_requests", {status: [], no_load: false}).then((resp) => {
        this.do_reload()
      })
    },
    approve_request() {