-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix right-click menu for open locally #37295
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -716,15 +716,15 @@ | |
| displayName: function(context) { | ||
| var locked = context.$file.data('locked'); | ||
| if (!locked) { | ||
| return t('files', 'Edit locally'); | ||
| return t('files', 'Open locally'); | ||
| } | ||
| }, | ||
| mime: 'all', | ||
| order: -23, | ||
| icon: function(filename, context) { | ||
| iconClass: function(filename, context) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Pytal changing to iconClass seems to make it visible in the right-click menu. However I still need to find out how to add the icon-computer class then.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of adding
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I fear that this would need to be fixed in the horrible rightclick app and unfortunately I dont see an easy way to achieve this in there :/ @skjlndsv would it be fine for now to create a new icon-computer class until it gets rewritten with vue?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| var locked = context.$file.data('locked'); | ||
| if (!locked) { | ||
| return OC.imagePath('files', 'computer.svg') | ||
| return 'icon-computer' | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doesnt seem to work yet... |
||
| } | ||
| }, | ||
| permissions: OC.PERMISSION_UPDATE, | ||
|
|
||
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.
Should we change the wording from "Edit" to "Open" @jancborchardt?