Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/NotesService.js')
-rw-r--r--src/NotesService.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/NotesService.js b/src/NotesService.js
index 04c6a58f..0e927da5 100644
--- a/src/NotesService.js
+++ b/src/NotesService.js
@@ -177,9 +177,13 @@ export const setTitle = (noteId, title) => {
})
}
-export const createNote = category => {
+export const createNote = (category, title, content) => {
return axios
- .post(url('/notes'), { category: category || '' })
+ .post(url('/notes'), {
+ category: category || '',
+ content: content || '',
+ title: title || '',
+ })
.then(response => {
_updateLocalNote(response.data)
return response.data