Modify reset button and invalid credential error text
This commit is contained in:
@@ -69,7 +69,7 @@ class TranscriptCredentialsTest(CourseTestCase):
|
||||
},
|
||||
({'error_type': TranscriptionProviderErrorType.INVALID_CREDENTIALS}, False),
|
||||
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):
|
||||
# edx-video-pipeline doesn't support i18n translations yet.
|
||||
error_type = error_response.get('error_type')
|
||||
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)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<button class='button-link action-cancel-course-video-settings' aria-describedby='cancel-button-text'>
|
||||
<%- gettext('Reset') %>
|
||||
<span id='cancel-button-text' class='sr'><%-gettext('Press reset to discard your changes.') %></span>
|
||||
<%- gettext('Discard Changes') %>
|
||||
<span id='cancel-button-text' class='sr'><%-gettext('Press discard changes to discard your changes.') %></span>
|
||||
</button>
|
||||
<button class='button action-update-org-credentials' aria-describedby='update-org-credentials-button-text'>
|
||||
<%- gettext('Update Settings') %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<button class='button-link action-cancel-course-video-settings' aria-describedby='cancel-button-text'>
|
||||
<%- gettext('Reset') %>
|
||||
<span id='cancel-button-text' class='sr'><%-gettext('Press reset to discard changes.') %></span>
|
||||
<%- gettext('Discard Changes') %>
|
||||
<span id='cancel-button-text' class='sr'><%-gettext('Press discard changes to discard changes.') %></span>
|
||||
</button>
|
||||
<button class="button action-update-course-video-settings" aria-describedby='update-button-text'>
|
||||
<%- gettext('Update Settings') %>
|
||||
|
||||
Reference in New Issue
Block a user