Skip to content

Commit

Permalink
Merge pull request #7891 from fjordllc/bug/toast-japanese-bookmark-de…
Browse files Browse the repository at this point in the history
…letion

bookmark削除のトーストの文言を日本語に変更
  • Loading branch information
komagata authored Jul 15, 2024
2 parents 9ca0a8a + af9f0ee commit e027097
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/javascript/components/BookmarkButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function BookmarkButton({ bookmarkableId, bookmarkableType }) {
Bootcamp.delete(`/api/bookmarks/${bookmarkId}`)
.then(() => {
setIsBookmark(false)
toast.methods.toast('Bookmarkを削除しました')
toast.methods.toast('ブックマークを削除しました')
})
.catch((error) => {
console.warn(error)
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/BookmarksInDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Bookmark = ({ bookmark, editable, bookmarksUrl }) => {
Bootcamp.delete(`/api/bookmarks/${id}.json`)
.then((_response) => {
mutate(bookmarksUrl)
toast('Bookmarkを削除しました。')
toast('ブックマークを削除しました。')
})
.catch((error) => {
console.warn(error)
Expand Down
2 changes: 1 addition & 1 deletion test/system/home_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def assert_events_count(event_label, count)
visit '/'
first('.spec-bookmark-edit').click
first('.js-bookmark-delete-button').click
assert_text 'Bookmarkを削除しました。'
assert_text 'ブックマークを削除しました。'
assert_no_text '名前の長いメンター用'
end

Expand Down

0 comments on commit e027097

Please sign in to comment.