Skip to content

Commit

Permalink
fix: list view indicators for Nursing Task
Browse files Browse the repository at this point in the history
  • Loading branch information
akurungadam committed Jan 19, 2022
1 parent c11fd68 commit 0be4e2a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ frappe.listview_settings['Nursing Task'] = {
return [__('Draft'), 'orange', 'status, =, Draft'];

} else if (doc.status === 'Requested') {
return [__('Requested'), 'blue', 'status, =, Requested'];
return [__('Requested'), 'orange', 'status, =, Requested'];

} else if (doc.status === 'Rejected') {
return [__('Rejected'), 'red', 'status, =, Rejected'];
Expand All @@ -27,8 +27,11 @@ frappe.listview_settings['Nursing Task'] = {
} else if (doc.status === 'Failed') {
return [__('Failed'), 'red', 'status, =, Failed'];

} else { // Received, On Hold, Accepted, Ready, In Progress
return [__(doc.status), 'lightblue', `status, =, ${doc.status}`];
} else if (doc.status === 'In Progress') {
return [__('In Progress'), 'blue', 'status, =, In Progress'];

} else { // Received, On Hold, Accepted, Ready
return [__(doc.status), 'light-blue', `status, =, ${doc.status}`];
}
}
};

0 comments on commit 0be4e2a

Please sign in to comment.