Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Add SMS country picker for default code #656

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Conversation

sethvargo
Copy link
Member

Release Note

Allow realms to select a default country code for SMS messages

screenshot-20200923-180315

@googlebot googlebot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Sep 23, 2020
@sethvargo
Copy link
Member Author

sethvargo commented Sep 23, 2020

Fixes #649

@sethvargo sethvargo linked an issue Sep 23, 2020 that may be closed by this pull request
@sethvargo
Copy link
Member Author

/hold

while it looks nice, it doesn't actually add the prefix...

@mikehelmick
Copy link
Contributor

it does look nice!

@sethvargo
Copy link
Member Author

/unhold

I forgot this is javascript submitted.

let phone = document.querySelector('#phone');
let iti = window.intlTelInput(phone, {
nationalMode: true,
{{- if $currentRealm.SMSCountry }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...I should totally be making more use of {{- for nicer layout

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really try to avoid it unless specifically required. I don't particularly care in HTML, but js is... finicky.

Copy link
Contributor

@whaught whaught left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sethvargo, whaught

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit 9345a7f into main Sep 23, 2020
@google-oss-robot google-oss-robot deleted the sethvargo/tel branch September 23, 2020 23:05
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nicer telephone widget
5 participants