Commit d155275d authored by Luke Duncalfe's avatar Luke Duncalfe

Fix typo on Design LFS enabling notice

parent 41da94da
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- requirements_link_url = help_page_path('user/project/issues/design_management', anchor: 'requirements') - requirements_link_url = help_page_path('user/project/issues/design_management', anchor: 'requirements')
- requirements_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: requirements_link_url } - requirements_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: requirements_link_url }
- link_end = '</a>'.html_safe - link_end = '</a>'.html_safe
- enable_lfs_message = s_("DesignManagement|To upload designs, you'll need to enable LFS and have admin enable hashed storage. %{requirements_link_start}More information%{requirements_link_end}").html_safe % { requirements_link_start: requirements_link_start, requirements_link_end: link_end } - enable_lfs_message = s_("DesignManagement|To upload designs, you'll need to enable LFS and have an admin enable hashed storage. %{requirements_link_start}More information%{requirements_link_end}").html_safe % { requirements_link_start: requirements_link_start, requirements_link_end: link_end }
- if @project.design_management_enabled? - if @project.design_management_enabled?
- add_page_startup_graphql_call('design_management/get_design_list', { fullPath: @project.full_path, iid: @issue.iid.to_s, atVersion: nil }) - add_page_startup_graphql_call('design_management/get_design_list', { fullPath: @project.full_path, iid: @issue.iid.to_s, atVersion: nil })
......
---
title: Fix typo in notice displayed when Design Management requires LFS to be enabled
merge_request: 51644
author:
type: fixed
...@@ -9832,7 +9832,7 @@ msgstr "" ...@@ -9832,7 +9832,7 @@ msgstr ""
msgid "DesignManagement|There was an error moving your designs. Please upload your designs below." msgid "DesignManagement|There was an error moving your designs. Please upload your designs below."
msgstr "" msgstr ""
msgid "DesignManagement|To upload designs, you'll need to enable LFS and have admin enable hashed storage. %{requirements_link_start}More information%{requirements_link_end}" msgid "DesignManagement|To upload designs, you'll need to enable LFS and have an admin enable hashed storage. %{requirements_link_start}More information%{requirements_link_end}"
msgstr "" msgstr ""
msgid "DesignManagement|Unresolve thread" msgid "DesignManagement|Unresolve thread"
......
...@@ -38,7 +38,7 @@ RSpec.describe 'User uploads new design', :js do ...@@ -38,7 +38,7 @@ RSpec.describe 'User uploads new design', :js do
let(:feature_enabled) { false } let(:feature_enabled) { false }
it 'shows the message about requirements' do it 'shows the message about requirements' do
expect(page).to have_content("To upload designs, you'll need to enable LFS and have admin enable hashed storage.") expect(page).to have_content("To upload designs, you'll need to enable LFS and have an admin enable hashed storage.")
end end
end end
......
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