Skip to content

Commit 68252d6

Browse files
authored
Merge pull request #3715 from dimagi/sk/connect-rename
Warn when renaming a CommCare Connect bot
2 parents a90272e + 56df52f commit 68252d6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

apps/channels/forms.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,14 @@ class CommCareConnectChannelForm(ExtraFormBase):
569569
max_length=100,
570570
)
571571

572+
def __init__(self, *args, **kwargs):
573+
super().__init__(*args, **kwargs)
574+
if self.channel:
575+
self.warning_message = (
576+
"Changing the bot name updates the name shown to new participants on CommCare Connect. "
577+
"Participants who have already connected may continue to see the previous name."
578+
)
579+
572580

573581
class WidgetParams(forms.Widget):
574582
template_name = "channels/widgets/widget_params.html"

0 commit comments

Comments
 (0)