mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-07 15:25:00 +00:00
Ajout de commentaires supplémentaires aux motifs
This commit is contained in:
@@ -10,17 +10,17 @@
|
||||
* @throws {Error} If the related entity ID is undefined.
|
||||
*/
|
||||
export const buildLinkCreate = (
|
||||
workflowName: string,
|
||||
relatedEntityClass: string,
|
||||
relatedEntityId: number | undefined,
|
||||
workflowName: string,
|
||||
relatedEntityClass: string,
|
||||
relatedEntityId: number | undefined,
|
||||
): string => {
|
||||
if (typeof relatedEntityId === "undefined") {
|
||||
throw new Error("the related entity id is not set");
|
||||
}
|
||||
const params = new URLSearchParams();
|
||||
params.set("entityClass", relatedEntityClass);
|
||||
params.set("entityId", relatedEntityId.toString(10));
|
||||
params.set("workflow", workflowName);
|
||||
if (typeof relatedEntityId === "undefined") {
|
||||
throw new Error("the related entity id is not set");
|
||||
}
|
||||
const params = new URLSearchParams();
|
||||
params.set("entityClass", relatedEntityClass);
|
||||
params.set("entityId", relatedEntityId.toString(10));
|
||||
params.set("workflow", workflowName);
|
||||
|
||||
return `/fr/main/workflow/create?` + params.toString();
|
||||
return `/fr/main/workflow/create?` + params.toString();
|
||||
};
|
||||
|
Reference in New Issue
Block a user