Skip to content

Commit

Permalink
fix(AclStateButton): Increase contrast for inherited permissions
Browse files Browse the repository at this point in the history
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
  • Loading branch information
nfebe committed Jul 18, 2024
1 parent 245ef9b commit 8a225d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/AclStateButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,6 @@ export default {
<style scoped>
.inherited {
opacity: 0.5;
color: var(--color-text-maxcontrast);
}
</style>
6 changes: 5 additions & 1 deletion src/components/SharingSidebarView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ export default {
if (this.isNotInherited(permission, item.inheritedMask)) {
return inheritPermitted ? STATES.INHERIT_ALLOW : STATES.INHERIT_DENY
} else {
return STATES.INHERIT_DEFAULT
// return STATES.INHERIT_DEFAULT
// Inherited or not an action is either allowed or not allowed and it should be reflected
// Currently we different the permissions using contrast, using the max for inherited permisions
// WIP: Figure out how to properly check default permissions for group folders
return (permitted || inheritPermitted) ? STATES.INHERIT_ALLOW : STATES.INHERIT_DENY
}
}
}
Expand Down

0 comments on commit 8a225d7

Please sign in to comment.