Updated the labels for API key creation options

This commit is contained in:
Pete Herlihy
2017-02-02 12:44:12 +00:00
committed by GitHub
parent edfa9d4382
commit c1f771a73d

View File

@@ -69,9 +69,9 @@ def create_api_key(service_id):
]
form = CreateKeyForm(key_names)
form.key_type.choices = [
(KEY_TYPE_NORMAL, 'Send messages to anyone'),
(KEY_TYPE_TEAM, 'Send messages to anyone on my whitelist'),
(KEY_TYPE_TEST, 'Pretend to send messages to anyone'),
(KEY_TYPE_NORMAL, 'Live sends to anyone'),
(KEY_TYPE_TEAM, 'Team and whitelist limits who you can send to'),
(KEY_TYPE_TEST, 'Test pretends to send messages'),
]
if current_service['restricted']:
disabled_options = [KEY_TYPE_NORMAL]