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

Fix inconsistent UI/UX for read-only non-spatial layers #3635

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

VitorVieiraZ
Copy link
Contributor

@VitorVieiraZ VitorVieiraZ commented Oct 2, 2024

Added layerIsReadOnly property as a condition for visibility of Add Feature button. If a layer is non-spatial and not read-only, the button will be visible.

Read-only Editable

Fix #3633

@VitorVieiraZ VitorVieiraZ added this to the 2024.4.1 milestone Oct 2, 2024
@VitorVieiraZ VitorVieiraZ changed the title WIP - Fix inconsistent UI/UX for read-only non-spatial layers Fix inconsistent UI/UX for read-only non-spatial layers Oct 3, 2024
@@ -21,6 +21,7 @@ MMComponents.MMPage {

property var selectedLayer: null
property bool hasToolbar: false
property bool layerIsReadOnly: featuresModel.layer?.readOnly ?? false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like we could go just with this

Suggested change
property bool layerIsReadOnly: featuresModel.layer?.readOnly ?? false
property bool layerIsReadOnly: selectedLayer?.readOnly ?? false

that way we do not add dependency for featuresModel

Copy link
Collaborator

@tomasMizera tomasMizera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@tomasMizera
Copy link
Collaborator

Please rebase/merge master to fix the iOS build

Copy link

github-actions bot commented Oct 4, 2024

Pull Request Test Coverage Report for Build 11180907554

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 27 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.1%) to 60.239%

Files with Coverage Reduction New Missed Lines %
input/app/main.cpp 2 32.65%
input/app/notificationmodel.cpp 3 49.44%
input/core/merginuserauth.cpp 9 75.95%
input/core/merginapi.cpp 13 79.09%
Totals Coverage Status
Change from base Build 11166700037: -0.1%
Covered Lines: 7760
Relevant Lines: 12882

💛 - Coveralls

@tomasMizera tomasMizera removed this from the 2024.4.1 milestone Oct 7, 2024
@tomasMizera tomasMizera merged commit b2eff70 into master Oct 8, 2024
12 checks passed
@tomasMizera tomasMizera deleted the uiUx/readOnlyNonSpatialLayers branch October 8, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Read-only non-spatial layers: inconsistent UI/UX
3 participants