first file upload working

This commit is contained in:
vabene1111
2024-08-21 16:17:03 +02:00
parent 7397f4c381
commit 91111c7d74
2 changed files with 61 additions and 6 deletions

View File

@@ -36,7 +36,7 @@
<v-text-field></v-text-field>
<v-text-field></v-text-field>
<v-btn class="mt-3" color="success" @click="" prepend-icon="$save">{{ $t('Save') }}</v-btn>
<v-btn class="mt-3" color="success" @click="updateSpace()" prepend-icon="$save">{{ $t('Save') }}</v-btn>
</v-form>
</template>
@@ -60,6 +60,15 @@ onMounted(() => {
})
})
function updateSpace(){
let api = new ApiApi()
api.apiSpacePartialUpdate({id: space.value.id, patchedSpace: space.value}).then(r => {
space.value = r
}).catch(err => {
useMessageStore().addError(ErrorMessageType.UPDATE_ERROR, err)
})
}
</script>
<style scoped>