twilio-professional-services / flex-dialpad-addon-plugin

Adds agent to agent outbound call and external number transfer to Twilio Flex native dialpad
26 stars 20 forks source link

Just show actions buttons in agent view #30

Closed gruberb closed 3 years ago

gruberb commented 3 years ago

The actions buttons for end-call and put-on-hold are shown both in the agent view and in the supervisor (teams) view. Besides not functioning in the teams view, they also imply that the supervisor can end calls. That's not true.

This PR adds the flex.view props to the ParticpantActionsButtons component and checks if currentView is not teams. If it is, we don't render them.

trogers-twilio commented 3 years ago

Tested successfully for me. Compared with native Flex UI experience for Team View and it appears identical. Approving the PR and merging with master branch.