branch bow-v2-go updated (61712a1 -> 490b90e)
This is an automated email from the git hooks/post-receive script. New change to branch bow-v2-go in repository bow. See https://gitlab.nuiton.org/chorem/bow.git from 61712a1 correction des types de date en base pour (TIMESTAMP WITH TIME ZONE) pour etre compatible avec les dates go edition fonctionnelle correction du fetcher pour les reponses vides new 490b90e edit permet d'avoir des parametres pour creer un nouveau bookmark pré-renseigné correction dans le content-type du retour de la creation d'un bookmark The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 490b90e39129e715ce792dd13361911b903034cb Author: Benjamin <poussin@codelutin.com> Date: Tue Apr 14 22:02:48 2020 +0200 edit permet d'avoir des parametres pour creer un nouveau bookmark pré-renseigné correction dans le content-type du retour de la creation d'un bookmark Summary of changes: pkg/http/bookmarkResource.go | 1 + web/src/router/index.js | 10 +++++++++- web/src/views/BookmarkEdit.vue | 26 ++++++++++++++++++++++++-- 3 files changed, 34 insertions(+), 3 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch bow-v2-go in repository bow. See https://gitlab.nuiton.org/chorem/bow.git commit 490b90e39129e715ce792dd13361911b903034cb Author: Benjamin <poussin@codelutin.com> Date: Tue Apr 14 22:02:48 2020 +0200 edit permet d'avoir des parametres pour creer un nouveau bookmark pré-renseigné correction dans le content-type du retour de la creation d'un bookmark --- pkg/http/bookmarkResource.go | 1 + web/src/router/index.js | 10 +++++++++- web/src/views/BookmarkEdit.vue | 26 ++++++++++++++++++++++++-- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/pkg/http/bookmarkResource.go b/pkg/http/bookmarkResource.go index 4c6648f..34d66a5 100644 --- a/pkg/http/bookmarkResource.go +++ b/pkg/http/bookmarkResource.go @@ -103,6 +103,7 @@ func addBookmark(w http.ResponseWriter, r *http.Request) { return } + w.Header().Add("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]string{"id": id}) } diff --git a/web/src/router/index.js b/web/src/router/index.js index 22324a8..e8fd93a 100644 --- a/web/src/router/index.js +++ b/web/src/router/index.js @@ -27,7 +27,15 @@ const routes = [ path: '/edit/:id', name: 'Edit', component: BookmarkEdit, - props: true + props: route => ({ + id: route.params.id, + uri: route.query.uri, + description: route.query.description, + tags: route.query.tags, + privateAlias: route.query.privateAlias, + publicAlias: route.query.publicAlias, + lang: route.query.lang + }) }, { path: '/about', diff --git a/web/src/views/BookmarkEdit.vue b/web/src/views/BookmarkEdit.vue index 00ed3e8..2c98a6a 100644 --- a/web/src/views/BookmarkEdit.vue +++ b/web/src/views/BookmarkEdit.vue @@ -24,13 +24,35 @@ import { Component, Prop, Vue } from 'vue-property-decorator' @Component({ name: 'BookmarkEdit', - props: ['id'], + props: [ + 'id', + 'uri', + 'description', + 'tags', + 'privateAlias', + 'publicAlias', + 'lang' + ], components: {} }) class BookmarkEdit extends Vue { @Prop id - bookmark = {} + @Prop uri + @Prop description + @Prop tags + @Prop privateAlias + @Prop publicAlias + @Prop lang + errorMsg = '' + bookmark = { + uri: this.uri, + description: this.description, + tags: this.tags, + privateAlias: this.privateAlias, + publicAlias: this.publicAlias, + lang: this.lang + } fetchBookmark() { if (this.id !== 'new') { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm