This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP #217 Handle isopen flag correctly for SplitButtonComponent
- Loading branch information
1 parent
b58a478
commit 615c9c3
Showing
6 changed files
with
5 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
$(".review-<%= @review.item.id %>").replaceWith("<%= escape_javascript(render partial: 'reviews/review_status', locals: { review: @review } ) %>"); | ||
$(".review-<%= @review.item.id %>").replaceWith("<%= escape_javascript(render partial: 'reviews/review_status', locals: { review: @review, isopen: true } ) %>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<%= render SplitButtonComponent.new(item: review.item, user: current_user, isopen: true) %> | ||
<%= render SplitButtonComponent.new(item: review.item, user: current_user, isopen: isopen) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
$(".review-<%= @review.item.id %>").replaceWith("<%= escape_javascript(render partial: 'review_status', locals: { review: @review } ) %>"); | ||
$(".review-<%= @review.item.id %>").replaceWith("<%= escape_javascript(render partial: 'review_status', locals: { review: @review, isopen: false } ) %>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters