Commit 9d404042 by Mushtaq Ali

Modify reset button and invalid credential error text

parent e89c3dd3
...@@ -69,7 +69,7 @@ class TranscriptCredentialsTest(CourseTestCase): ...@@ -69,7 +69,7 @@ class TranscriptCredentialsTest(CourseTestCase):
}, },
({'error_type': TranscriptionProviderErrorType.INVALID_CREDENTIALS}, False), ({'error_type': TranscriptionProviderErrorType.INVALID_CREDENTIALS}, False),
400, 400,
'{\n "error": "Transcript credentials are not valid."\n}' '{\n "error": "The information you entered is incorrect."\n}'
), ),
( (
{ {
......
...@@ -103,7 +103,7 @@ def transcript_credentials_handler(request, course_key_string): ...@@ -103,7 +103,7 @@ def transcript_credentials_handler(request, course_key_string):
# edx-video-pipeline doesn't support i18n translations yet. # edx-video-pipeline doesn't support i18n translations yet.
error_type = error_response.get('error_type') error_type = error_response.get('error_type')
if error_type == TranscriptionProviderErrorType.INVALID_CREDENTIALS: if error_type == TranscriptionProviderErrorType.INVALID_CREDENTIALS:
error_message = _('Transcript credentials are not valid.') error_message = _('The information you entered is incorrect.')
response = JsonResponse({'error': error_message}, status=400) response = JsonResponse({'error': error_message}, status=400)
......
<button class='button-link action-cancel-course-video-settings' aria-describedby='cancel-button-text'> <button class='button-link action-cancel-course-video-settings' aria-describedby='cancel-button-text'>
<%- gettext('Reset') %> <%- gettext('Discard Changes') %>
<span id='cancel-button-text' class='sr'><%-gettext('Press reset to discard your changes.') %></span> <span id='cancel-button-text' class='sr'><%-gettext('Press discard changes to discard your changes.') %></span>
</button> </button>
<button class='button action-update-org-credentials' aria-describedby='update-org-credentials-button-text'> <button class='button action-update-org-credentials' aria-describedby='update-org-credentials-button-text'>
<%- gettext('Update Settings') %> <%- gettext('Update Settings') %>
......
<button class='button-link action-cancel-course-video-settings' aria-describedby='cancel-button-text'> <button class='button-link action-cancel-course-video-settings' aria-describedby='cancel-button-text'>
<%- gettext('Reset') %> <%- gettext('Discard Changes') %>
<span id='cancel-button-text' class='sr'><%-gettext('Press reset to discard changes.') %></span> <span id='cancel-button-text' class='sr'><%-gettext('Press discard changes to discard changes.') %></span>
</button> </button>
<button class="button action-update-course-video-settings" aria-describedby='update-button-text'> <button class="button action-update-course-video-settings" aria-describedby='update-button-text'>
<%- gettext('Update Settings') %> <%- gettext('Update Settings') %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment