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

Dashboard layout changes cannot be saved #171

Closed
ralfhennig opened this issue Jun 24, 2022 · 3 comments
Closed

Dashboard layout changes cannot be saved #171

ralfhennig opened this issue Jun 24, 2022 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ralfhennig
Copy link

I need to change a dashboard page and my changes are not saved. I have two widgets in Grid Layout, those are vertically after each other (each takes the whole screen width). I drag the one in the first row beside the other widget. All fine. After that I dont have a save button (discette icon) or anything else. I can only use the x button "leave edit mode". After that my changes are gone. What do I have to do in order to save the layout changes?

@aeberhart aeberhart added the bug Something isn't working label Jun 27, 2022
@aeberhart
Copy link
Contributor

Can you please attach the page. I cannot reproduce the issue. Thanks!

@aeberhart
Copy link
Contributor

{
    "ID": "ContractsDashboard",
    "layout": {
        "widget": "page",
        "pageLayout": "grid",
        "children": [
            {
                "widget": "chart",
                "title": "Number of Contracts by Site",
                "query": "numberOfContractsBySite",
                "database": "RicohInvoices",
                "chart": "bar",
                "x": 0,
                "y": 0,
                "rows": 1,
                "cols": 1,
                "style": {
                    "width= 200px": null
                }
            },
            {
                "widget": "chart",
                "text": "New Widget",
                "x": 0,
                "y": 1,
                "rows": 1,
                "cols": 1,
                "query": "numberDevicesByContract",
                "database": "RicohInvoices",
                "chart": "line",
                "title": "Number of Devices per Contract test",
                "style": {
                    "": null
                }
            }
        ]
    }
}
```

@aeberhart aeberhart self-assigned this Jul 5, 2022
@aeberhart
Copy link
Contributor

This issue is caused by the style block:

                "style": {
                    "width= 200px": null
                }

This block is not treated correctly when checking widget equality. With this example, both widgets have such a block and thus, the platform thinks there was no change.

will be fixed post 2.1

as a workaround, simply remove the style section

@aeberhart aeberhart added this to the 2.5 milestone Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants