Wrapped up approval visuals and refresh behaviour
This commit is contained in:
@@ -38,6 +38,7 @@ const submitForm = handleSubmit(
|
||||
output.promotions.map(p => p.start_date = new Date(p.start_date).toISOString())
|
||||
await submitRankChange(output);
|
||||
formSubmitted.value = true;
|
||||
emit("submitted");
|
||||
} catch (error) {
|
||||
submitError.value = error;
|
||||
console.error(error);
|
||||
@@ -45,6 +46,10 @@ const submitForm = handleSubmit(
|
||||
}
|
||||
);
|
||||
|
||||
const emit = defineEmits<{
|
||||
submitted: [void]
|
||||
}>();
|
||||
|
||||
const submitError = ref<string>(null);
|
||||
const formSubmitted = ref(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user