fdm-monster / fdm-monster-client

FDM Monster's client bundle
GNU Affero General Public License v3.0
3 stars 6 forks source link

Hide a floor if there is just 1 of it #1099

Open davidzwa opened 8 months ago

davidzwa commented 8 months ago

Without multiple floors, there is no use to show just one.

Try to find a better way to onboard users into the concept of floors, because maybe they dont need it at all.

davidzwa commented 7 months ago

@INatsuz this issue is quite an easy one. If the floors array is of length 1, do not show the floor selector at the top.

Afterwards we can plan work to find a better way to introduce people into "large farm" setups:

davidzwa commented 7 months ago

This is the place for that. https://github.com/fdm-monster/fdm-monster-client/blob/2fcee247764565765fc6d1df0791a1cf55c7e207/src/components/PrinterGrid/HomeToolbar.vue#L20

It is specific to only the PrinterGridView https://github.com/fdm-monster/fdm-monster-client/blob/main/src/components/PrinterGrid/PrinterGridView.vue

A view is a Vue term for layout page. Components are their way of saying fragments or in other words child components not directly loaded as a routed page.