mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-05 06:08:46 -05:00
first file upload working
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user