papercups-io / chat-widget

Papercups chat widget
https://app.papercups.io/demo
MIT License
257 stars 93 forks source link

Add option to hide widget outside working hours #85

Open reichert621 opened 3 years ago

reichert621 commented 3 years ago

Let's add a new prop: hideOutsideWorkingHours.

If this is true, we'll check the widget settings settings.account?.is_outside_working_hours and completely hide the widget if this value is true.

tharun208 commented 3 years ago

@reichert621, I like to work on this

reichert621 commented 3 years ago

sure @tharun208! let me know if you need any help getting set up :+1:

tharun208 commented 3 years ago

@reichert621, The test account added in the repo is removed I think so

reichert621 commented 3 years ago

@tharun208 the easiest way to test for you would probably be to do the following:

tharun208 commented 3 years ago

@reichert621, should we need to show the chat widget icon or we need to show nothing to the user if this prop is set ?

reichert621 commented 3 years ago

show nothing if this prop is set :+1: