Skip to content
Snippets Groups Projects
Commit 2d7d6daa authored by Camille Blanchon's avatar Camille Blanchon
Browse files

Merge branch 'redmine-issues/14416' into 'develop'

REDMINE_ISSUE-14416|Ajout de commentaire ne fonctionne plus

See merge request !442
parents 9cdb5302 463db21d
No related branches found
No related tags found
No related merge requests found
...@@ -207,10 +207,12 @@ export default { ...@@ -207,10 +207,12 @@ export default {
'user', 'user',
'isOnline', 'isOnline',
]), ]),
...mapGetters([ ...mapGetters([
'permissions', 'permissions',
]), ]),
...mapState('feature', [
'currentFeature',
]),
DJANGO_BASE_URL() { DJANGO_BASE_URL() {
return this.$store.state.configuration.VUE_APP_DJANGO_BASE; return this.$store.state.configuration.VUE_APP_DJANGO_BASE;
...@@ -231,14 +233,14 @@ export default { ...@@ -231,14 +233,14 @@ export default {
if (this.validateForm()) { if (this.validateForm()) {
featureAPI featureAPI
.postComment({ .postComment({
featureId: this.$route.params.slug_signal, featureId: this.currentFeature.feature_id,
comment: this.comment_form.comment.value, comment: this.comment_form.comment.value,
}) })
.then((response) => { .then((response) => {
if (response && this.comment_form.attachment_file.file) { if (response && this.comment_form.attachment_file.file) {
featureAPI featureAPI
.postCommentAttachment({ .postCommentAttachment({
featureId: this.$route.params.slug_signal, featureId: this.currentFeature.feature_id,
file: this.comment_form.attachment_file.file, file: this.comment_form.attachment_file.file,
fileName: this.comment_form.attachment_file.fileName, fileName: this.comment_form.attachment_file.fileName,
title: this.comment_form.attachment_file.title, title: this.comment_form.attachment_file.title,
......
...@@ -115,6 +115,13 @@ ...@@ -115,6 +115,13 @@
{{ link.feature_to.created_on }}) {{ link.feature_to.created_on }})
</td> </td>
</tr> </tr>
<tr v-if="linked_features.length === 0">
<td>
<em>
Aucune liaison associée au signalement.
</em>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment