Skip to content

Commit

Permalink
Merge pull request #391 from sparc-request/ac-ssr-level-send-notifica…
Browse files Browse the repository at this point in the history
…tion-list

fix to notification in dashboard
  • Loading branch information
wtholt committed May 20, 2016
2 parents fabd4bb + ecb777f commit bda6a57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions app/views/dashboard/notifications/_dropdown.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
%optgroup{ label: t(:dashboard)[:notifications][:table][:authorized_users]}
- sub_service_request.service_request.protocol.project_roles.each do |pr|
%option{ data: { identity_id: pr.identity_id, sub_service_request_id: sub_service_request.id, is_service_provider: 'false', current_user_id: user.id } } #{display_user_role(pr)}: #{pr.identity.full_name}
- unless admin
%optgroup{ label: t(:dashboard)[:notifications][:table][:clinical_providers]}
- sub_service_request.organization.service_providers.includes(:identity).sort_by { |sp| sp.identity.last_name }.each do |sp|
%option{ data: { identity_id: sp.identity.id, sub_service_request_id: sub_service_request.id, is_service_provider: 'true', current_user_id: user.id } }
= sp.identity.full_name
%optgroup{ label: t(:dashboard)[:notifications][:table][:service_providers]}
- sub_service_request.organization.service_providers.includes(:identity).sort_by { |sp| sp.identity.last_name }.each do |sp|
%option{ data: { identity_id: sp.identity.id, sub_service_request_id: sub_service_request.id, is_service_provider: 'true', current_user_id: user.id } }
= sp.identity.full_name
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ en:
compose: "Compose Message"
requester: "Requester"
authorized_users: "Authorized Users"
clinical_providers: "Clinical Providers"
service_providers: "Service Providers"
inbox: "Inbox"
sent: "Sent"
mark_as_unread: "Mark as Unread"
Expand Down

0 comments on commit bda6a57

Please sign in to comment.