mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-20 10:57:47 +00:00
Insert name of file as the document title when uploading
This commit is contained in:
6
.changes/unreleased/Fixed-20251119-133324.yaml
Normal file
6
.changes/unreleased/Fixed-20251119-133324.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
kind: Fixed
|
||||
body: Insert name of file as the document title when uploading
|
||||
time: 2025-11-19T13:33:24.778116633+01:00
|
||||
custom:
|
||||
Issue: ""
|
||||
SchemaChange: No schema change
|
||||
@@ -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