mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
fix: Documents admin page: "+Type" button has a wrong label ("+Add") (WP #69498)
This commit is contained in:
+2
-2
@@ -37,12 +37,12 @@
|
||||
subheader.with_action_button(
|
||||
scheme: :primary,
|
||||
leading_icon: :plus,
|
||||
label: t(:button_add),
|
||||
label: t("documents.button_add_type"),
|
||||
tag: :a,
|
||||
href: helpers.url_for(action: :new),
|
||||
test_selector: "add-document-type-button"
|
||||
) do
|
||||
I18n.t(:button_add)
|
||||
I18n.t("documents.button_add_type")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -58,6 +58,8 @@ en:
|
||||
enumeration_doc_categories: "Document categories"
|
||||
|
||||
documents:
|
||||
button_add_type: "Type"
|
||||
|
||||
page_header:
|
||||
heading: "All documents"
|
||||
action_menu:
|
||||
|
||||
@@ -51,7 +51,7 @@ RSpec.describe "Document types admin", :js do
|
||||
end
|
||||
|
||||
within_test_selector("admin-document-types-subheader") do
|
||||
click_on "Add"
|
||||
click_on "Type"
|
||||
end
|
||||
|
||||
fill_in "Name", with: "Documentation"
|
||||
|
||||
Reference in New Issue
Block a user