From d46990e9f868339d0f173790ec70115e86e0f068 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 9 Aug 2023 15:06:23 +0900 Subject: [PATCH] Show overlay while waiting bulk assignment --- frontend/components/example/FormAssignment.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/components/example/FormAssignment.vue b/frontend/components/example/FormAssignment.vue index bffe65f6..3f2565fa 100644 --- a/frontend/components/example/FormAssignment.vue +++ b/frontend/components/example/FormAssignment.vue @@ -48,13 +48,16 @@ Assign + + + @@ -67,7 +70,8 @@ export default Vue.extend({ return { members: [] as MemberItem[], workloadAllocation: [] as number[], - selectedStrategy: 'weighted_sequential' + selectedStrategy: 'weighted_sequential', + isWaiting: false } }, @@ -114,6 +118,7 @@ export default Vue.extend({ methods: { async agree() { + this.isWaiting = true const workloads = this.workloadAllocation.map((weight, i) => ({ weight, member_id: this.members[i].id @@ -122,6 +127,7 @@ export default Vue.extend({ strategy_name: this.selectedStrategy, workloads }) + this.isWaiting = false this.$emit('assigned') }, cancel() {