Skip to content

Commit

Permalink
Merge pull request #17222 from opf/fix/one-off-meetings
Browse files Browse the repository at this point in the history
Remove one-off meeting label for 15.1
  • Loading branch information
mrmir authored Nov 19, 2024
2 parents e5077ea + f6ea802 commit 032e5d3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def render?
end

def title
@type == :new ? I18n.t("label_meeting_new_one_time") : "Copy meeting"
@type == :new ? I18n.t("label_meeting_new_dynamic") : "Copy meeting"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
I18n.t(:label_meeting)
end

menu.with_item(label: I18n.t("meeting.types.classic"),
tag: :a,
href: dynamic_path
)

menu.with_item(label: I18n.t("meeting.types.structured"),
tag: :a,
href: new_dialog_meetings_path(project_id: @project&.id),
content_arguments: { data: { controller: "async-dialog" }}
)

menu.with_item(label: I18n.t("meeting.types.classic"),
tag: :a,
href: dynamic_path
)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions modules/meeting/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ en:
label_meeting: "Meeting"
label_meeting_plural: "Meetings"
label_meeting_new: "New Meeting"
label_meeting_new_one_time: "New one-time meeting"
label_meeting_new_dynamic: "New dynamic meeting"
label_meeting_create: "Create meeting"
label_meeting_copy: "Copy meeting"
label_meeting_edit: "Edit Meeting"
Expand Down Expand Up @@ -164,7 +164,7 @@ en:
types:
classic: "Classic"
classic_text: "Organize your meeting in a formattable text agenda and protocol."
structured: "One-time"
structured: "Dynamic"
structured_text: "Organize your meeting as a list of agenda items, optionally linking them to a work package."
structured_text_copy: "Copying a meeting will currently not copy the associated meeting agenda items, just the details"
copied: "Copied from Meeting #%{id}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
meetings_page.visit!
expect(page).to have_current_path(meetings_page.path) # rubocop:disable RSpec/ExpectInHook
meetings_page.click_on "add-meeting-button"
meetings_page.click_on "One-time"
meetings_page.click_on "Dynamic"
meetings_page.set_title "Some title"

meetings_page.set_start_date "2013-03-28"
Expand Down
2 changes: 1 addition & 1 deletion modules/meeting/spec/support/pages/meetings/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def expect_create_new_types
click_on("add-meeting-button")

expect(page).to have_link("Classic")
expect(page).to have_link("One-time")
expect(page).to have_link("Dynamic")
end

def expect_copy_action(meeting)
Expand Down

0 comments on commit 032e5d3

Please sign in to comment.