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

Disable Show Relations button when queried feature has no associated relationships #608

Open
1 task done
leolami opened this issue Mar 27, 2024 · 3 comments
Open
1 task done
Assignees
Labels
feature New feature or request

Comments

@leolami
Copy link
Member

leolami commented Mar 27, 2024

Checklist

  • I've searched through the current issues to make sure this feature hasn't been requested already.

Motivation

When I query a feature of a layer with a 1:N relationship I see the link to the related table even if there are no registered relationships

Suggested solution

The link should be made unclickable (grayed out) if the relations table is empty

Both on the form and on the list of relations shown by the relevant button

Image

Image

Alternatives considered

No response

@leolami leolami added the feature New feature or request label Mar 27, 2024
@Raruto Raruto transferred this issue from g3w-suite/backlog Apr 9, 2024
@volterra79
Copy link
Member

@leolami can you provide a live web ink or project with data? Thanks

@Raruto
Copy link
Collaborator

Raruto commented Jun 11, 2024

can you provide a live web ink or project with data? Thanks

@leolami ?

@leolami
Copy link
Member Author

leolami commented Jun 11, 2024

Maybe it was solved because here I see the icon only for buildindgs that have relations

No icons for the other layer

https://dev.g3wsuite.it/it/map/g3w-suite-demo/qdjango/97/#

image

@Raruto Raruto changed the title Disable relations references if no relations exist Hide Show Relation button when queried feature has no associated relationships Jun 11, 2024
@Raruto Raruto changed the title Hide Show Relation button when queried feature has no associated relationships Disable Show Relation button when queried feature has no associated relationships Jun 11, 2024
@Raruto Raruto changed the title Disable Show Relation button when queried feature has no associated relationships Disable Show Relations button when queried feature has no associated relationships Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants