mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust ui
This commit is contained in:
1 parent
258133d65c
commit
1b21b0c65b
4 files changed
+14
-8
No files matched your search
@@ -62,7 +62,7 @@ class TemplateFoldersController < ApplicationController
|
||||
end
|
||||
|
||||
def render_infinite_scroll(pagy, templates, template_folders)
|
||||
rendering =
|
||||
render_params =
|
||||
if templates.present?
|
||||
{ partial: 'templates/template', collection: templates }
|
||||
else
|
||||
@@ -70,7 +70,7 @@ class TemplateFoldersController < ApplicationController
|
||||
end
|
||||
|
||||
render turbo_stream: [
|
||||
turbo_stream.before('infinite_scroll', **rendering),
|
||||
turbo_stream.before('infinite_scroll', **render_params),
|
||||
turbo_stream.replace('infinite_scroll', partial: 'shared/infinite_scroll', locals: { pagy: })
|
||||
]
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user