Browse Source

Make bulk assign await

pull/2261/head
Hironsan 1 year ago
parent
commit
d71743c411
1 changed files with 2 additions and 2 deletions
  1. 4
      frontend/components/example/FormAssignment.vue

4
frontend/components/example/FormAssignment.vue

@ -112,12 +112,12 @@ export default Vue.extend({
},
methods: {
agree() {
async agree() {
const workloads = this.workloadAllocation.map((weight, i) => ({
weight,
member_id: this.members[i].id
}))
this.$repositories.assignment.bulkAssign(this.projectId, {
await this.$repositories.assignment.bulkAssign(this.projectId, {
strategy_name: this.selectedStrategy,
workloads
})

Loading…
Cancel
Save