Skip to content

Commit

Permalink
Comment/Commentsを使うように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
dowdiness committed Feb 27, 2024
1 parent 6248112 commit 7b8ed35
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/views/announcements/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ hr.a-border
= render 'announcement', announcement: @announcement
#js-comments(data-commentable-id="#{@announcement.id}" data-commentable-type='Announcement' data-current-user-id="#{current_user.id}")
- narrowed_current_user = current_user.as_json(only: %i[id login_name], methods: %i[avatar_url roles primary_role icon_title])
= react_component('Comments/Comments', title: '質問・コメント', commentableId: @announcement.id, commentableType: 'Announcement', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
= react_component('Comment/Comments', title: '質問・コメント', commentableId: @announcement.id, commentableType: 'Announcement', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
div(data-vue='Footprints' data-vue-footprintable-id="#{@announcement.id}" data-vue-footprintable-type='Announcement')
2 changes: 1 addition & 1 deletion app/views/events/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@
= render 'event', event: @event
#js-comments(data-commentable-id="#{@event.id}" data-commentable-type='Event' data-current-user-id="#{current_user.id}")
- narrowed_current_user = current_user.as_json(only: %i[id login_name], methods: %i[avatar_url roles primary_role icon_title])
= react_component('Comments/Comments', title: '質問・連絡・コメント', commentableId: @event.id, commentableType: 'Event', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
= react_component('Comment/Comments', title: '質問・連絡・コメント', commentableId: @event.id, commentableType: 'Event', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
div(data-vue='Footprints' data-vue-footprintable-id="#{@event.id}" data-vue-footprintable-type='Event')
2 changes: 1 addition & 1 deletion app/views/pages/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ hr.a-border
#js-comments(data-commentable-id="#{@page.id}" data-commentable-type='Page' data-current-user-id="#{current_user.id}")
- narrowed_current_user = current_user.as_json(only: %i[id login_name], methods: %i[avatar_url roles primary_role icon_title])

= react_component('Comments/Comments', title: 'コメント', commentableId: @page.id, commentableType: 'Page', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
= react_component('Comment/Comments', title: 'コメント', commentableId: @page.id, commentableType: 'Page', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)

- if @page.practice
nav.a-side-nav
Expand Down
2 changes: 1 addition & 1 deletion app/views/products/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ header.page-header
#js-comments(data-commentable-id="#{@product.id}" data-commentable-type='Product' data-current-user-id="#{current_user.id}")
- narrowed_current_user = current_user.as_json(only: %i[id login_name], methods: %i[avatar_url roles primary_role icon_title])

= react_component('Comments/Comments', title: 'コメント', commentableId: @product.id, commentableType: 'Product', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
= react_component('Comment/Comments', title: 'コメント', commentableId: @product.id, commentableType: 'Product', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)

div(data-vue='Footprints' data-vue-footprintable-id="#{@product.id}" data-vue-footprintable-type='Product')

Expand Down
2 changes: 1 addition & 1 deletion app/views/regular_events/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
= render 'regular_event', regular_event: @regular_event
#js-comments(data-commentable-id="#{@regular_event.id}" data-commentable-type='RegularEvent' data-current-user-id="#{current_user.id}")
- narrowed_current_user = current_user.as_json(only: %i[id login_name], methods: %i[avatar_url roles primary_role icon_title])
= react_component('Comments/Comments', title: '質問・連絡・コメント', commentableId: @regular_event.id, commentableType: 'RegularEvent', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
= react_component('Comment/Comments', title: '質問・連絡・コメント', commentableId: @regular_event.id, commentableType: 'RegularEvent', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
div(data-vue='Footprints' data-vue-footprintable-id="#{@regular_event.id}" data-vue-footprintable-type='RegularEvent')
2 changes: 1 addition & 1 deletion app/views/reports/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#js-comments(data-commentable-id="#{@report.id}" data-commentable-type='Report' data-current-user-id="#{current_user.id}")
- narrowed_current_user = current_user.as_json(only: %i[id login_name], methods: %i[avatar_url roles primary_role icon_title])

= react_component('Comments/Comments', title: 'コメント', commentableId: @report.id, commentableType: 'Report', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
= react_component('Comment/Comments', title: 'コメント', commentableId: @report.id, commentableType: 'Report', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)

div(data-vue='Footprints' data-vue-footprintable-id="#{@report.id}" data-vue-footprintable-type='Report')

Expand Down
2 changes: 1 addition & 1 deletion app/views/talks/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
= member.login_name
#js-comments(data-commentable-id="#{@talk.id}" data-commentable-type='Talk' data-current-user-id="#{current_user.id}")
- narrowed_current_user = current_user.as_json(only: %i[id login_name], methods: %i[avatar_url roles primary_role icon_title])
= react_component(title: '連絡・返信', 'Comments/Comments', commentableId: @talk.id, commentableType: 'Talk', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
= react_component(title: '連絡・返信', 'Comment/Comments', commentableId: @talk.id, commentableType: 'Talk', currentUser: narrowed_current_user, availableEmojis: Reaction.available_emojis.to_json)
- if current_user.admin?
div(data-vue="ActionCompletedButton" data-vue-commentable-id:number="#{@talk.id}" data-vue-is-initial-action-completed:boolean="#{@talk.action_completed}")

Expand Down

0 comments on commit 7b8ed35

Please sign in to comment.