Rename action TaskAssignColor to TaskAssignColorColumn

This commit is contained in:
Frederic Guillot
2015-04-03 18:56:05 -04:00
parent 5631210fb7
commit a264a53e3b
21 changed files with 22 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ use Model\Task;
* *
* @package action * @package action
*/ */
class TaskAssignColor extends Base class TaskAssignColorColumn extends Base
{ {
/** /**
* Get the list of compatible events * Get the list of compatible events

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -847,4 +847,5 @@ return array(
'Check my code' => 'Vérifier mon code', 'Check my code' => 'Vérifier mon code',
'Secret key: ' => 'Clé secrète : ', 'Secret key: ' => 'Clé secrète : ',
'Test your device' => 'Testez votre appareil', 'Test your device' => 'Testez votre appareil',
'Assign a color when the task is moved to a specific column' => 'Assigner une couleur lorsque la tâche est déplacée dans une colonne spécifique',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -845,4 +845,5 @@ return array(
// 'Check my code' => '', // 'Check my code' => '',
// 'Secret key: ' => '', // 'Secret key: ' => '',
// 'Test your device' => '', // 'Test your device' => '',
// 'Assign a color when the task is moved to a specific column' => '',
); );

View File

@@ -41,13 +41,13 @@ class Action extends Base
$values = array( $values = array(
'TaskClose' => t('Close a task'), 'TaskClose' => t('Close a task'),
'TaskOpen' => t('Open a task'), 'TaskOpen' => t('Open a task'),
'TaskAssignColor' => t('Assign a color to a task'),
'TaskAssignSpecificUser' => t('Assign the task to a specific user'), 'TaskAssignSpecificUser' => t('Assign the task to a specific user'),
'TaskAssignCurrentUser' => t('Assign the task to the person who does the action'), 'TaskAssignCurrentUser' => t('Assign the task to the person who does the action'),
'TaskDuplicateAnotherProject' => t('Duplicate the task to another project'), 'TaskDuplicateAnotherProject' => t('Duplicate the task to another project'),
'TaskMoveAnotherProject' => t('Move the task to another project'), 'TaskMoveAnotherProject' => t('Move the task to another project'),
'TaskMoveColumnAssigned' => t('Move the task to another column when assigned to a user'), 'TaskMoveColumnAssigned' => t('Move the task to another column when assigned to a user'),
'TaskMoveColumnUnAssigned' => t('Move the task to another column when assignee is cleared'), 'TaskMoveColumnUnAssigned' => t('Move the task to another column when assignee is cleared'),
'TaskAssignColorColumn' => t('Assign a color when the task is moved to a specific column'),
'TaskAssignColorUser' => t('Assign a color to a specific user'), 'TaskAssignColorUser' => t('Assign a color to a specific user'),
'TaskAssignColorCategory' => t('Assign automatically a color based on a category'), 'TaskAssignColorCategory' => t('Assign automatically a color based on a category'),
'TaskAssignCategoryColor' => t('Assign automatically a category based on a color'), 'TaskAssignCategoryColor' => t('Assign automatically a category based on a color'),

View File

@@ -1390,7 +1390,7 @@ Response example:
"id": 1433237746, "id": 1433237746,
"result": { "result": {
"TaskLogMoveAnotherColumn" : "Add a comment logging moving the task between columns", "TaskLogMoveAnotherColumn" : "Add a comment logging moving the task between columns",
"TaskAssignColor" : "Assign a color to a task", "TaskAssignColorColumn" : "Assign a color when the task is moved to a specific column",
"TaskAssignColorUser" : "Assign a color to a specific user", "TaskAssignColorUser" : "Assign a color to a specific user",
"TaskAssignCategoryColor" : "Assign automatically a category based on a color", "TaskAssignCategoryColor" : "Assign automatically a category based on a color",
"TaskAssignColorCategory" : "Assign automatically a color based on a category", "TaskAssignColorCategory" : "Assign automatically a color based on a category",

View File

@@ -8,11 +8,11 @@ use Model\TaskCreation;
use Model\TaskFinder; use Model\TaskFinder;
use Model\Project; use Model\Project;
class ActionTaskAssignColorTest extends Base class ActionTaskAssignColorColumnTest extends Base
{ {
public function testColorChange() public function testColorChange()
{ {
$action = new Action\TaskAssignColor($this->container, 1, Task::EVENT_MOVE_COLUMN); $action = new Action\TaskAssignColorColumn($this->container, 1, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 2); $action->setParam('column_id', 2);
$action->setParam('color_id', 'green'); $action->setParam('color_id', 'green');