Skip to content
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

ui.file_upload sucess message bar doesn't show correct file names #1607

Closed
Far0n opened this issue Aug 25, 2022 · 0 comments · Fixed by #1611
Closed

ui.file_upload sucess message bar doesn't show correct file names #1607

Far0n opened this issue Aug 25, 2022 · 0 comments · Fixed by #1611
Assignees
Labels
bug Bug in code ui Related to UI

Comments

@Far0n
Copy link

Far0n commented Aug 25, 2022

Wave SDK Version, OS

wave 0.22.0

Actual behavior

ui.file_upload doesn't show proper file names in success message
grafik
(Shows "." if 1 file was uploaded and adds a "," per additional file)

Expected behavior

ui.file_upload shows proper file names in success message

Steps To Reproduce

Run the following app and upload 1 or more files:

from h2o_wave import Q, app, main, ui  # noqa F401

@app("/")
async def serve(q: Q):
    if not q.client.init:
        q.page["meta"] = ui.meta_card(box="")
        await q.page.save()
        q.page["meta"].dialog = ui.dialog(
            title="Import Datasets",
            primary=True,
            items=[
                ui.file_upload(
                    name="file_import",
                    label="Import",
                    multiple=True,
                    file_extensions=["csv", "gz", "zip", "tar"],
                ),
                ui.button(name="close_dialog", icon="Cancel"),
            ],
        )
        await q.page.save()
        q.client.init = True

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in code ui Related to UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants