dockge icon indicating copy to clipboard operation
dockge copied to clipboard

Can't see icon to remove dockge agents in "light" UI theme

Open bwirt opened this issue 1 year ago • 11 comments

⚠️ Please verify that this bug has NOT been reported before.

  • [X] I checked and didn't find similar issue

🛡️ Security Policy

Description

Maybe I'm missing something, but I can't remove a dockge agent. This causes errors to appear in the log.

image

👟 Reproduction steps

  1. Install dockge on two different machines
  2. Link them together via the UI (Home / Add Agent)
  3. Destroy the remote instance, should become unavailable
  4. Cannot delete the agent.

👀 Expected behavior

Need a trash bin icon next to the name to delete the agent.

😓 Actual Behavior

Not possible to delete agent

Dockge Version

1.4.2

💻 Operating System and Arch

Docker / Linux

🌐 Browser

Firefox

🐋 Docker Version

27.1.1

🟩 NodeJS Version

No response

📝 Relevant log output

2024-10-22T14:49:21Z [AGENT-MANAGER] ERROR: Error from the socket server: hoarder.lan:5001

bwirt avatar Oct 22 '24 14:10 bwirt

I was unable to reproduce the issue. Do you have any other reproduction steps to provide, or could you clarify how Docker was installed/launched?

image

I see that you're using the white theme, which is normally not available. Check if the button is just not visible because of that.

cyril59310 avatar Oct 22 '24 16:10 cyril59310

After some tests, the issue does indeed come from the white theme. I recommend resetting Dockge to its default theme.

image

cyril59310 avatar Oct 22 '24 17:10 cyril59310

Cool... would do that if I could figure out how. Where is the light/dark setting?

image

bwirt avatar Oct 22 '24 18:10 bwirt

I was unable to reproduce the issue. Do you have any other reproduction steps to provide, or could you clarify how Docker was installed/launched?

image

I see that you're using the white theme, which is normally not available. Check if the button is just not visible because of that.

Can confirm this is the problem. I am able to remove the agent by clicking the invisible trash can to the right.

bwirt avatar Oct 22 '24 18:10 bwirt

Cool... je le ferais si je pouvais comprendre comment. Où est le réglage clair/obscur ?

image

Normally, the setting is not available, and the dark theme is applied by default 🤨 Do you have a browser plugin that changes the theme? If not, try switching your browser to dark mode to see if it makes a difference.

cyril59310 avatar Oct 22 '24 18:10 cyril59310

I'm not running any browser plugin and the mode is set to automatic. Forcing the browser to dark mode doesn't change the behavior, but I did notice if I open in in "private" mode (which has a different color scheme), dockge does in fact use dark mode.

Quite strange as I have another dockge instance (one of the agents), and connecting directly brings it up in dark mode.

Running Firefox on Windows 11, latest version.

bwirt avatar Oct 23 '24 13:10 bwirt

I have never encountered this issue. I will try to conduct more in-depth tests to reproduce the problem

cyril59310 avatar Oct 23 '24 14:10 cyril59310

Happy to help if you need it. Quite strange. I am not sure how dockge decides light vs dark theme. If you can tell me, maybe I can assist.

bwirt avatar Oct 23 '24 15:10 bwirt

Happy to help if you need it. Quite strange. I am not sure how dockge decides light vs dark theme. If you can tell me, maybe I can assist.

Normally, in the code, Dockge is supposed to force the dark theme... It shouldn’t switch to the white theme or automatically choose a theme

cyril59310 avatar Oct 24 '24 20:10 cyril59310

Try to clear localStorage and refresh.

https://www.leadshook.com/help/how-to-clear-local-storage-in-google-chrome-browser/

Since the core is very similar to Uptime Kuma, if you had ever hosted Uptime Kuma on the same port and the same hostname, Dockge could use Uptime Kuma's settings. Just my guess.

louislam avatar Oct 26 '24 04:10 louislam

@louislam Thank you, I cleared localStorage and refreshed so the theme becomes dark, like magic.

DeeliN221 avatar May 12 '25 12:05 DeeliN221