OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
add off and on label for toggle switch
Behrokh Satarnejad22ec0a393606
diff --git a/app/components/oauth/applications/application_row_component.html.erb b/app/components/oauth/applications/application_row_component.html.erbindex 88ac447a404..4bf9aae836c 100644--- a/app/components/oauth/applications/application_row_component.html.erb+++ b/app/components/oauth/applications/application_row_component.html.erb@@ -36,7 +36,9 @@checked: @application.enabled?,data: {"test-selector": "op-admin-oauth--application-enabled-toggle-switch"- }+ },+ on_label: t(:label_switch_on),+ off_label: t(:label_switch_off)))enddiff --git a/app/components/projects/settings/life_cycle/phase_component.html.erb b/app/components/projects/settings/life_cycle/phase_component.html.erbindex 9532a793670..9b1fe4f333e 100644--- a/app/components/projects/settings/life_cycle/phase_component.html.erb+++ b/app/components/projects/settings/life_cycle/phase_component.html.erb@@ -27,7 +27,9 @@checked: active?,size: :small,status_label_position: :start,- classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator"+ classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator",+ on_label: t(:label_switch_on),+ off_label: t(:label_switch_off)))enddiff --git a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erbindex df223298392..1974fe8dca1 100644--- a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb+++ b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb@@ -45,7 +45,9 @@enabled: !@project_custom_field.required?, # required fields cannot be disabledsize: :small,status_label_position: :start,- classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator"+ classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator",+ on_label: t(:label_switch_on),+ off_label: t(:label_switch_off)))enddiff --git a/app/components/work_package_types/export_template_row_component.html.erb b/app/components/work_package_types/export_template_row_component.html.erbindex de7dac1c92f..6ae88c72377 100644--- a/app/components/work_package_types/export_template_row_component.html.erb+++ b/app/components/work_package_types/export_template_row_component.html.erb@@ -54,7 +54,9 @@ See COPYRIGHT and LICENSE files for more details.size: :small,status_label_position: :start,test_selector: "toggle-pdf-export-template-row-#{@template.id}",- classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator"+ classes: "op-primer-adjustments__toggle-switch--hidden-loading-indicator",+ on_label: t(:label_switch_on),+ off_label: t(:label_switch_off)))enddiff --git a/config/locales/en.yml b/config/locales/en.ymlindex feeb4ec3ffa..a74a56d0ace 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2102,6 +2102,9 @@ en:button_publish: "Make public"button_unpublish: "Make private"+ label_switch_on: "On"+ label_switch_off: "Off"+consent:checkbox_label: I have noted and do consent to the above.failure_message: Consent failed, cannot proceed.