-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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 right-click menu for open locally #37295
Conversation
Signed-off-by: Simon L <szaimen@e.mail.de>
7ce7139
to
09f2919
Compare
var locked = context.$file.data('locked'); | ||
if (!locked) { | ||
return OC.imagePath('files', 'computer.svg') | ||
return 'icon-computer' |
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.
doesnt seem to work yet...
} | ||
}, | ||
mime: 'all', | ||
order: -23, | ||
icon: function(filename, context) { | ||
iconClass: function(filename, context) { |
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.
@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.
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.
Instead of adding icon-computer
which is the deprecated way, would probably be better to make it work with the icon
property
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 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?
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.
What issue does this fix? The "Edit locally" action shows up correctly on NC26 |
Not in the right-clik menu afaics... |
@@ -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'); |
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?
Not relevant anymore |
For my own testing