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 right-click menu for open locally #37295

Closed
wants to merge 1 commit into from

Conversation

szaimen
Copy link
Contributor

@szaimen szaimen commented Mar 19, 2023

For my own testing
docker run -it \
--name nextcloud-easy-test \
-p 8443:443 \
-e TRUSTED_DOMAIN=192.168.24.128 \
--volume="nextcloud_easy_test_npm_cache_volume:/var/www/.npm" \
-e SERVER_BRANCH=enh/noid/fix-rightlick-open-locally \
-e RIGHTCLICK_BRANCH=master \
-e COMPILE_SERVER=1 \
ghcr.io/szaimen/nextcloud-easy-test:latest

@szaimen szaimen added the 2. developing Work in progress label Mar 19, 2023
@szaimen szaimen added this to the Nextcloud 27 milestone Mar 19, 2023
Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/noid/fix-rightlick-open-locally branch from 7ce7139 to 09f2919 Compare March 19, 2023 00:24
var locked = context.$file.data('locked');
if (!locked) {
return OC.imagePath('files', 'computer.svg')
return 'icon-computer'
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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.

Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

Choose a reason for hiding this comment

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

@skjnldsv 👆

@Pytal
Copy link
Member

Pytal commented Mar 27, 2023

What issue does this fix? The "Edit locally" action shows up correctly on NC26

@szaimen
Copy link
Contributor Author

szaimen commented Mar 27, 2023

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');
Copy link
Member

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?

This was referenced May 3, 2023
@skjnldsv skjnldsv modified the milestones: Nextcloud 27, Nextcloud 28 May 9, 2023
@skjnldsv skjnldsv closed this Oct 17, 2023
@skjnldsv skjnldsv deleted the enh/noid/fix-rightlick-open-locally branch October 17, 2023 19:53
@skjnldsv
Copy link
Member

Not relevant anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants