Close popup after sending massstore

This commit is contained in:
Philipp Lang 2023-12-16 20:35:40 +01:00
parent 380c18a70e
commit e37d98f168
1 changed files with 3 additions and 2 deletions

View File

@ -59,7 +59,8 @@ const props = defineProps(indexProps);
var { axios, meta, data, reloadPage } = useIndex(props.data, 'invoice');
const massstore = ref(null);
function sendMassstore() {
axios.post(meta.value.links['mass-store'], massstore.value);
async function sendMassstore() {
await axios.post(meta.value.links['mass-store'], massstore.value);
massstore.value = null;
}
</script>