Skip to content

Commit

Permalink
linked task list to detail screen (#254)
Browse files Browse the repository at this point in the history
* linked task list to detail screen

* fixed build issue
  • Loading branch information
aman-alfresco authored Jun 13, 2023
1 parent 64f96b2 commit b67ff9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ class TasksFragment : TaskListFragment<TasksViewModel, TasksViewState>() {
) = continuation.resume(ComponentMetaData(name = name, query = query, queryMap = queryMap))

override fun onItemClicked(entry: TaskEntry) {
if (viewModel.isWorkflowTask) return
startActivity(
Intent(requireActivity(), TaskViewerActivity::class.java)
.putExtra(Mavericks.KEY_ARG, entry)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import com.alfresco.content.session.SessionManager
import com.alfresco.process.apis.ProcessAPI
import com.alfresco.process.apis.TaskAPI
import com.alfresco.process.models.AssignUserBody
import com.alfresco.process.models.CommonOptionModel
import com.alfresco.process.models.GroupInfo
import com.alfresco.process.models.PriorityModel
import com.alfresco.process.models.ProfileData
import com.alfresco.process.models.RequestComment
import com.alfresco.process.models.RequestLinkContent
Expand Down Expand Up @@ -360,7 +360,7 @@ class TaskRepository(val session: Session = SessionManager.requireSession) {
values = ValuesModel(
due = processEntry?.formattedDueDate,
message = processEntry?.description,
priority = if (processEntry?.priority != -1) PriorityModel(
priority = if (processEntry?.priority != -1) CommonOptionModel(
id = getTaskPriority(processEntry?.priority ?: 0).name,
name = getTaskPriority(processEntry?.priority ?: 0).name
) else null,
Expand Down

0 comments on commit b67ff9b

Please sign in to comment.