377 - add the document filename to document title when uploading a new document

This commit is contained in:
juminet
2025-05-13 08:30:30 +00:00
committed by Julien Fastré
parent 3e7f03d331
commit a9c3aab528
6 changed files with 46 additions and 6 deletions

View File

@@ -535,11 +535,11 @@ export default {
title: title,
});
},
addDocument({ stored_object, stored_object_version }) {
addDocument({ stored_object, stored_object_version, file_name }) {
let document = {
type: "accompanying_period_work_evaluation_document",
storedObject: stored_object,
title: "Nouveau document",
title: file_name,
};
this.$store.commit("addDocument", {
key: this.evaluation.key,