Loading src/components/plugins/TasksStatusPlugin.vue +7 −2 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ <script> import {mapGetters} from "vuex"; export default { name: "TasksStatusPlugin", data() { Loading Loading @@ -73,8 +75,11 @@ export default { value: 'status' } ] } }, ...mapGetters(["currentProjectId"]) }, methods: { pollData() { Loading @@ -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, Loading src/utils/JamaRpcClient.js +3 −4 Original line number Diff line number Diff line Loading @@ -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: * Loading @@ -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 Loading
src/components/plugins/TasksStatusPlugin.vue +7 −2 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ <script> import {mapGetters} from "vuex"; export default { name: "TasksStatusPlugin", data() { Loading Loading @@ -73,8 +75,11 @@ export default { value: 'status' } ] } }, ...mapGetters(["currentProjectId"]) }, methods: { pollData() { Loading @@ -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, Loading
src/utils/JamaRpcClient.js +3 −4 Original line number Diff line number Diff line Loading @@ -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: * Loading @@ -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