question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

user-menu does not work when prefix set

See original GitHub issue
  • Version (cloudcmd -v): 12.2,0
  • Node Version node -v: 10 and 11
  • OS (uname -a on Linux): raspbian, arch, and manjaro
  • Browser name/version: firefox and chromium, latest versions
  • Used Command Line Parameters: --user-menu
  • Changed Config:

I know, I should provide some updated documentation for user-menu (however, it’s already pretty nice, just some minor changes that I shoudl deliver soon in a pull-request), instead I just came back to working with it and found a small bug:

If prefix is set (I set both prefix and prefixSocket) in the configuration (I have cloudcmd in my production version running under /cloudcmd prefix), the user-menu does not work. It never even shows up (only the changed button is visible).

If no prefix is used, it does work as described.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ulnocommented, May 22, 2019

Changing the string of fetch client/modules/user-menu.js to:

const res = await fetch(`${CloudCmd.prefix}/api/v1/user-menu?dir=${dirPath}`);

This seems to do the trick - need to do some further testing, but need now first to deploy this to five machines (teaching this in five hours).

I will report here later if things worked.

Thanks for the last minute support.

0reactions
coderaisercommented, May 24, 2019

Landed in Cloud Commander v12.3.0 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Different menus per route group · Issue #5 - GitHub
I was wondering, is there a more elegant way that we can set different menus based on route. For example the admin group...
Read more >
showCommandingMenu - Bohemia Interactive Community Wiki
Create the commanding menu described by the given config class or menu name. When the name is empty, the current menu is hidden....
Read more >
Workspace Administration - SAP Help Portal
You can set a prefix for the providers in the workspace. All providers and transient queries in the workspace are then given this...
Read more >
Customizing the WinX menu, and making it user-specific
So here's (hopefully!) a full, comprehensive guide to tinkering with the right-click Windows WinX menu. What is the WinX menu?
Read more >
Cisco Preferred Architecture for Webex Calling
This guide is a design and deployment overview of the Cisco Webex Calling ... PSTN access code and national prefix) would not match...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found