Commit 887cdaa4 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

Task list restricted to current project

parent cca959a9
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@

<script>

import {mapGetters} from "vuex";

export default {
  name: "TasksStatusPlugin",
  data() {
@@ -73,8 +75,11 @@ export default {
          value: 'status'
        }
      ]
    }
    },
    ...mapGetters(["currentProjectId"])
  },



  methods: {
    pollData() {
@@ -84,7 +89,7 @@ export default {
    },

    fetchData() {
      this.$jamaClient.userTasksStatus().then((res) => {
      this.$jamaClient.userTasksStatus(this.currentProjectId).then((res) => {
        this.tasks = []
        res.forEach((t) => this.tasks.push({
          id: t.id,
+3 −4
Original line number Diff line number Diff line
@@ -1575,7 +1575,6 @@ class JamaRpcClient extends RpcClient{
        return this._rpc("upload_infos", [sha256_hash, project_id]);
    }


    /**
     * Returns list of user tasks. Each task being serialized like so:
     *
@@ -1591,12 +1590,12 @@ class JamaRpcClient extends RpcClient{
     * }
     * ```
     *
     * @param {BigInteger} project_id
     * @returns {Array}
     */
    async userTasksStatus() {
        return this._rpc("user_tasks_status", []);
    async userTasksStatus(project_id = null) {
        return this._rpc("user_tasks_status", [project_id]);
    }

}

export default JamaRpcClient