179 case SCR_ECannotAssignReasons.TASK_IS_ASSIGNED:
180 {
181 m_AssignButton.SetLabel(ABANDON_TASK)
182 } break;
183
184 case SCR_ECannotAssignReasons.TASK_IS_ASSIGNED_TO_LOCAL_EXECUTOR:
185 {
186 m_AssignButton.SetLabel(ABANDON_TASK);
187 } break;
188
189 case SCR_ECannotAssignReasons.IS_TASK_REQUESTER:
190 {
191 m_AssignButton.SetLabel(CANCEL_TASK);
192 } break;
193
194 // Another task is already assigned to a local executor, so CanBeAssigned returns false. However in this case the task can be assigned by clicking on assign button.
195 case SCR_ECannotAssignReasons.LOCAL_EXECUTOR_IS_ASSIGNED: