-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch empty state when public flag is toggled #16036
Conversation
I am very very confused why this does not work. It renders the exact same response body as other Response that works: <turbo-stream action="replace" target="share_modal_body">
<template>
<turbo-frame id="share_modal_body">...</turbo-frame>
</template>
</turbo-stream> Response that does not work: <turbo-stream action="replace" target="share_modal_body">
<template>
<turbo-frame id="share_modal_body">...</turbo-frame>
</template>
</turbo-stream> If anybody has an idea, I'd be very happy to understand why |
It might boil down to how primer components mke the request. They generate a @oliverguenther pointed out that the |
630f339
to
4e40a49
Compare
We have to wait for a decision on primer/view_components#2940 if we can use the component or if we need to rebuild a bit from scratch so we can use turbo with it. We can already merge this and create anotehr follow up in the future |
@query.where("project_id", "=", entity.project.id) | ||
end | ||
|
||
@query.order(name: :asc) unless params[:sortBy] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe check for params is not needed as calls to order are appended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default order for a member is created_at, so it makes sense to reorder here depending on params being present
One more left over ticket from #15971: When toggling the public state of the project list, re-render the modal