Commit 26c58532 authored by thomas craipeau's avatar thomas craipeau
Browse files

update

parent fd1cde56
......@@ -184,7 +184,8 @@
"modified the task": "modified the task",
"Delete this task ?": "Delete this task ?",
"Add answer": "Add proposal",
"creating a new answer": "create a new proposal"
"creating a new answer": "create a new proposal",
"go on the action": "go on the action"
},
"Tibillet card transfer": "Tibillet card transfer",
"Transfer your credits": "Transfer your credits",
......
......@@ -184,7 +184,8 @@
"modified the task": "modifier la tâche",
"Delete this task ?": "Supprimer cette tâche ?",
"Add answer": "Ajouter proposition",
"creating a new answer": "ajouter une nouvelle proposition"
"creating a new answer": "ajouter une nouvelle proposition",
"go on the action": "aller sur l'action"
},
"Tibillet card transfer": "Transfert carte tibillet",
"Transfer your credits": "Transférer vos crédits",
......
......@@ -274,6 +274,7 @@ Template.detailViewAnswers.events({
'click .actions-answer-depense-js'(event) {
event.preventDefault();
const depense = this;
console.log(depense);
const sheetObjet = {
modalClose: true,
titleText: i18n.__('answers.Spent actions'),
......@@ -333,6 +334,7 @@ Template.detailViewAnswers.events({
if (!depense.isCompleteTaskCredit) {
sheetObjet.buttons.push({ name: 'add-task', text: `${i18n.__('answers.Add task')} <i class="icon fa fa-euro"></i>` });
}
sheetObjet.buttons.push({ name: 'link-action', text: `${i18n.__('answers.go on the action')} <i class="icon fa fa-link"></i>` });
}
sheetObjet.buttonClicked = (index) => {
......@@ -361,6 +363,12 @@ Template.detailViewAnswers.events({
orgaCibleId: depense.orgaCibleId, _id: depense._id, scope: depense.scope, answerId: depense.answerId, depensekey: depense.key,
});
}
if (index === 'link-action') {
const actionOne = Actions.findOne({ _id: new Mongo.ObjectID(depense.isAction) });
Router.go('actionsDetailOrga', {
orgaCibleId: depense.orgaCibleId, _id: actionOne.parentId, scope: actionOne.parentType, roomId: actionOne.idParentRoom, actionId: depense.isAction,
});
}
if (index === 'delete-project-manager') {
if (depense.isWorker) {
IonPopup.confirm({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment