mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-25 13:18:30 +00:00
Insert name of file as the document title when uploading
This commit is contained in:
@@ -293,11 +293,11 @@ function onInputDocumentTitle(event) {
|
||||
});
|
||||
}
|
||||
|
||||
function addDocument({ stored_object, stored_object_version }) {
|
||||
function 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,
|
||||
};
|
||||
store.commit("addDocument", {
|
||||
key: props.evaluation.key,
|
||||
|
||||
Reference in New Issue
Block a user