e41d0c6ce TaskTreeContext: código no utilizado eliminado.
84f356c5f TaskSelection: tabla -> AG grid.
d32ea6833 finalizar nuevo panel de árbol de tareas
41d3529d5 corregir documentación
58991a04e nuevo panel de árbol de tareas: las carpetas pueden expandirse
e41d0c6ce
TaskTreeContext: código no utilizado eliminado.e41d0c6ce00beca324db223cbba9f6650352f492
diff --git a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
index e56e2f7b5..409965aa9 100644
--- a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
+++ b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
@@ -1,35 +1,24 @@
import React from 'react';
-const notImplementedFunction = () => {
- throw Error('Not implemented yet.');
-};
-
export const taskTreeContextDefaultValues = {
/**
* type {Number} Id of the task that should be highlighted.
*/
highlightTaskId: undefined,
- /**
- * Open/Close a task folder.
- *
- * @param taskId The id of the task to toggle.
- * @param from The state it should switch from. "OPENED" or "CLOSED".
- */
- toggleTask: (taskId, from) => notImplementedFunction(taskId, from),
/**
* @type {Object} Translations that are shown in the TaskTree
*/
translations: {
- 'fibu.auftrag.auftraege': '???',
- 'fibu.kost2': '???',
- priority: '???',
- shortDescription: '???',
- status: '???',
- task: '???',
- 'task.assignedUser': '???',
- 'task.consumption': '???',
- 'task.protectTimesheetsUntil.short': '???',
- 'task.reference': '???',
+ 'fibu.auftrag.auftraege': 'Orders',
+ 'fibu.kost2': 'Cost2',
+ priority: 'Priority',
+ shortDescription: 'Short description',
+ status: 'Status',
+ task: 'Structure element',
+ 'task.assignedUser': 'Responsible user',
+ 'task.consumption': 'Consumption',
+ 'task.protectTimesheetsUntil.short': 'Protected until',
+ 'task.reference': 'Reference',
},
};
84f356c5f
TaskSelection: tabla -> AG grid.84f356c5f928bfb35bfd007a8c46fbf85478cac4
diff --git a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
index 48fba77e6..e56e2f7b5 100644
--- a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
+++ b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
@@ -5,33 +5,10 @@ const notImplementedFunction = () => {
};
export const taskTreeContextDefaultValues = {
- /**
- * @type {Object} Which columns should be visible for the current user.
- */
- columnsVisibility: {
- assignedUser: false,
- kost2: false,
- orders: false,
- priority: false,
- protectionUntil: false,
- reference: false,
- },
/**
* type {Number} Id of the task that should be highlighted.
*/
highlightTaskId: undefined,
- /**
- * Handle the task selection.
- *
- * @param {Number} taskId The id of the selected Task
- * TODO: Is the selectedTask argument necessary?
- * @param {Object} selectedTask The selected task.
- */
- selectTask: (taskId, selectedTask) => notImplementedFunction(taskId, selectedTask),
- /**
- * @type {Boolean} Should the table be shown in a shorter form. Not all fields will be visible.
- */
- shortForm: false,
/**
* Open/Close a task folder.
* d32ea6833
finalizar nuevo panel de árbol de tareasd32ea683338a04733e0047e61e3af0aeeb14e012
diff --git a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
index 0037bc16a..48fba77e6 100644
--- a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
+++ b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
@@ -16,6 +16,10 @@ export const taskTreeContextDefaultValues = {
protectionUntil: false,
reference: false,
},
+ /**
+ * type {Number} Id of the task that should be highlighted.
+ */
+ highlightTaskId: undefined,
/**
* Handle the task selection.
* 41d3529d5
corregir documentación41d3529d5b09c2982e59def09c12893ac10f45a6
diff --git a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
index eb9b44f32..0037bc16a 100644
--- a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
+++ b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
@@ -32,7 +32,7 @@ export const taskTreeContextDefaultValues = {
* Open/Close a task folder.
*
* @param taskId The id of the task to toggle.
- * @param to The state it should switch from. "OPENED" or "CLOSED".
+ * @param from The state it should switch from. "OPENED" or "CLOSED".
*/
toggleTask: (taskId, from) => notImplementedFunction(taskId, from),
/** 58991a04e
nuevo panel de árbol de tareas: las carpetas pueden expandirse58991a04ebe612d51c98b8f406d8d2270539b969
diff --git a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
index d99a25feb..eb9b44f32 100644
--- a/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
+++ b/projectforge-webapp/src/containers/panel/task/TaskTreeContext.jsx
@@ -32,9 +32,9 @@ export const taskTreeContextDefaultValues = {
* Open/Close a task folder.
*
* @param taskId The id of the task to toggle.
- * @param to The state it should switch to. "OPEN" or "CLOSE".
+ * @param to The state it should switch from. "OPENED" or "CLOSED".
*/
- toggleTask: (taskId, to) => notImplementedFunction(taskId, to),
+ toggleTask: (taskId, from) => notImplementedFunction(taskId, from),
/**
* @type {Object} Translations that are shown in the TaskTree
*/