absmach / magistrala-ui

UI Repository for Magistrala IoT
9 stars 15 forks source link

NOISSUE - Add placeholder to the canvas with no widget #127

Closed ianmuchyri closed 6 months ago

ianmuchyri commented 6 months ago

What type of PR is this?

What does this do?

Adds a placeholder to the canvas during initialization if there is no widget to be placed on the canvas. image

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

Did you document any new/modified functionality?

Notes

depends on #108

ianmuchyri commented 6 months ago

When I click on adding widgets, but I exit from the sidebar without adding any widgets, the button is gone: image

This is because you are still in the edit mode for the canvas. If you click on the cancel button, it will take you back to the view mode where is no widget, it will appear again