-
Notifications
You must be signed in to change notification settings - Fork 9
feat: Show lock status next to unlock button #587
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
Conversation
@susnux I've been trying to work with this, however I noticed that when in grid view the action uses the title instead of the display name for the regular file action. Is this expected? |
Yes it was implemented that way by @skjnldsv |
b14a470
to
e50814a
Compare
Ok, rather unexpected but i think i found a feasible way now with adding an extra action to display the state. However it still uses the css to hide the inline action as I found it still valuable to have the state written out in both list and grid view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be more appropriate to use ncactioncaption
for this, otherwise this info text just looks to similar to other action buttons.
Thats not possible currently. You can only register actions (buttons) not text. |
Got it. Can we at least make the button disabled (no hover, no cursor: pointer, not tabbable)? |
Also this is not possible - if the action is disabled it is not rendered at all. I think if we want to have those status information we should do it as text and not introduce disabled buttons - those are an a11y nightmare. For now this way is probably the only feasible but we can of course implement improvements on the files app like you suggested @marcoambrosini :) |
e50814a
to
8ad2156
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks sane, and thanks for the tests ❤️
Signed-off-by: Julius Knorr <[email protected]>
…unlock Signed-off-by: Julius Knorr <[email protected]>
Signed-off-by: Julius Knorr <[email protected]>
8ad2156
to
fd9fc1c
Compare
We can make use of the enabled check to hide the menu entry, which was commented out but seems to work nowadays.
That way we now can properly show a action menu entry as info about the lock state only if the file is locked.