File tree 1 file changed +7
-2
lines changed
vueapp/components/Schedule
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 86
86
{{ opt.text }}
87
87
</option >
88
88
</select >
89
- <StudipButton icon =" accept" @click.prevent =" performBulkAction" >
90
- <span >{{ $gettext('Übernehmen') }}</span >
89
+ <StudipButton icon =" accept" @click.prevent =" performBulkAction"
90
+ :disabled =" bulkActionRunning" >
91
+ <span >{{ bulkActionRunning ? $gettext('Bitte warten...') : $gettext('Übernehmen') }}</span >
91
92
</StudipButton >
92
93
<StudipButton icon =" cancel" @click.prevent =" resetBulk" >
93
94
<span >{{ $gettext('Abbrechen') }}</span >
@@ -128,6 +129,7 @@ export default {
128
129
bulkRefs: [],
129
130
bulkAction: ' ' ,
130
131
refreshTimeout: null ,
132
+ bulkActionRunning: false
131
133
}
132
134
},
133
135
@@ -178,12 +180,15 @@ export default {
178
180
action: this .bulkAction ,
179
181
termin_ids: termin_ids,
180
182
};
183
+
184
+ this .bulkActionRunning = true ;
181
185
this .$store .dispatch (' bulkScheduling' , params).then (({ data }) => {
182
186
this .$store .dispatch (' clearMessages' );
183
187
if (data? .message ) {
184
188
this .addMesssage (data .message .type , data .message .text , true );
185
189
}
186
190
this .$store .dispatch (' getScheduleList' );
191
+ this .bulkActionRunning = false ;
187
192
});
188
193
189
194
},
You can’t perform that action at this time.
0 commit comments