Commit 3bb39a86 authored by James Edwards-Jones's avatar James Edwards-Jones

Group SAML test button internationalization

parent f5af8281
import $ from 'jquery'; import $ from 'jquery';
import { __ } from '~/locale';
import DirtyFormChecker from './dirty_form_checker'; import DirtyFormChecker from './dirty_form_checker';
export default class SamlSettingsForm { export default class SamlSettingsForm {
...@@ -29,14 +30,14 @@ export default class SamlSettingsForm { ...@@ -29,14 +30,14 @@ export default class SamlSettingsForm {
testButtonTooltip() { testButtonTooltip() {
if (!this.enabled) { if (!this.enabled) {
return 'Group SAML must be enabled to test'; return __('Group SAML must be enabled to test');
} }
if (this.dirtyFormChecker.isDirty) { if (this.dirtyFormChecker.isDirty) {
return 'Save changes before testing'; return __('Save changes before testing');
} }
return 'Redirect to SAML provider to test configuration'; return __('Redirect to SAML provider to test configuration');
} }
updateView() { updateView() {
......
- if saml_provider.persisted? - if saml_provider.persisted?
= saml_link_for_provider 'Test SAML SSO', saml_provider, redirect: request.url, html_class: 'btn qa-saml-settings-test-button' = saml_link_for_provider _('Test SAML SSO'), saml_provider, redirect: request.url, html_class: 'btn qa-saml-settings-test-button'
...@@ -3876,6 +3876,9 @@ msgstr "" ...@@ -3876,6 +3876,9 @@ msgstr ""
msgid "Group Runners" msgid "Group Runners"
msgstr "" msgstr ""
msgid "Group SAML must be enabled to test"
msgstr ""
msgid "Group avatar" msgid "Group avatar"
msgstr "" msgstr ""
...@@ -6435,6 +6438,9 @@ msgstr "" ...@@ -6435,6 +6438,9 @@ msgstr ""
msgid "Recent searches" msgid "Recent searches"
msgstr "" msgstr ""
msgid "Redirect to SAML provider to test configuration"
msgstr ""
msgid "Reference:" msgid "Reference:"
msgstr "" msgstr ""
...@@ -6769,6 +6775,9 @@ msgstr "" ...@@ -6769,6 +6775,9 @@ msgstr ""
msgid "Save changes" msgid "Save changes"
msgstr "" msgstr ""
msgid "Save changes before testing"
msgstr ""
msgid "Save pipeline schedule" msgid "Save pipeline schedule"
msgstr "" msgstr ""
...@@ -7538,6 +7547,9 @@ msgstr "" ...@@ -7538,6 +7547,9 @@ msgstr ""
msgid "Terms of Service and Privacy Policy" msgid "Terms of Service and Privacy Policy"
msgstr "" msgstr ""
msgid "Test SAML SSO"
msgstr ""
msgid "Test coverage parsing" msgid "Test coverage parsing"
msgstr "" msgstr ""
......
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