Skip to content

Commit 198763d

Browse files
authored
Merge pull request #225 from opf/fix/danger_confirmation_dialog-cancel-button
Button to dismiss Danger Dialog should read Cancel
2 parents 2deecbd + 6ae694b commit 198763d

File tree

9 files changed

+6
-1
lines changed

9 files changed

+6
-1
lines changed

.changeset/slow-pans-applaud.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openproject/primer-view-components': patch
3+
---
4+
5+
Changes button text to dismiss Danger Dialog from "Close" to "Cancel"
258 Bytes
Loading
259 Bytes
Loading
238 Bytes
Loading
286 Bytes
Loading
237 Bytes
Loading
234 Bytes
Loading
231 Bytes
Loading

app/components/primer/open_project/danger_confirmation_dialog.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<% end %>
1212
</scrollable-region>
1313
<%= render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do %>
14-
<%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { I18n.t("button_close") } %>
14+
<%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { I18n.t("button_cancel") } %>
1515
<%= render(Primer::Beta::Button.new(type: (@form_wrapper.shows_form? ? :submit : :button), scheme: :danger, data: { "submit-dialog-id": dialog_id })) { I18n.t("button_delete_permanently") } %>
1616
<% end %>
1717
<% end %>

0 commit comments

Comments
 (0)