louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
58.72k stars 5.29k forks source link

"Show Clickable Link" checkbox does not update until entire dashboard is saved #3794

Open BBaoVanC opened 1 year ago

BBaoVanC commented 1 year ago

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

πŸ›‘οΈ Security Policy

Description

After checking the "Show Clickable Link" box in a monitor's setting dialog and closing the dialog, reopening the monitor's setting dialog shows the same box still unchecked giving the impression that the setting did not change. Only after saving aving the dashboard and returning to the monitor's setting dialog does the box stay checked.

πŸ‘Ÿ Reproduction steps

  1. Press Edit Status Page
  2. Press the settings cog on a monitor
  3. Tick "Show Clickable Link" and close the dialog
  4. Press settings cog of the same monitor again

πŸ‘€ Expected behavior

The checkbox should stay checked to hint that it will be enabled after pressing save on the entire status page

πŸ˜“ Actual Behavior

The checkbox remains unchecked and the setting seemingly didn't change

🐻 Uptime-Kuma Version

1.23.2

πŸ’» Operating System and Arch

Debian 11

🌐 Browser

Firefox 117.0.1

πŸ‹ Docker Version

Docker 24.0.6

🟩 NodeJS Version

No response

πŸ“ Relevant log output

No response

Rai-Sahil commented 1 year ago

Can I work on it? If you think it's could be good first issue.

CommanderStorm commented 1 year ago

You can work on this. We don't assign people to issues ^^

See our contribution guide: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

Rai-Sahil commented 12 months ago

Hi @BBaoVanC

How do you recreate the bug? I tried the edit stats page it doesn't really show this checkbox.

BBaoVanC commented 12 months ago

Hi @BBaoVanC

How do you recreate the bug? I tried the edit stats page it doesn't really show this checkbox.

I sent a picture with the steps of reproducing it in a different thread: https://github.com/louislam/uptime-kuma/issues/3795#issuecomment-1734471131. If it's not there, what version are you on?

Rai-Sahil commented 11 months ago

Oh @BBaoVanC

found it. thanks

Also I fixed the issue, should I just make a pull request now?

https://github.com/louislam/uptime-kuma/assets/78111534/5b43805c-5824-46b9-8b37-8e20a21edaf4

Like this is my first PR, so just wondering,

right?

Rai-Sahil commented 11 months ago

You can work on this. We don't assign people to issues ^^

See our contribution guide: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

Hi @CommanderStorm

I have made a PR. you can see from recording I included in the PR that the issue is fixed. All the tests from auto-check to ESLint. Everything is good. Screenshot 2023-11-13 at 11 38 46β€―PM

I was wondering if you can merge that. Would be really helpful thanks.

CommanderStorm commented 11 months ago

@Rai-Sahil Please adress the comment from nelson in the PR.

As I wrote to you via email (sending messages via multiple channels at the same time is not good practice, as it just annoys people ^^):

I am not fully convinced that saving a single value to local storage fixes the issue as this means that

  • either all checkboxes are set or not
  • or maybe even requires a reload of the page to get somewhere
Rai-Sahil commented 11 months ago

@CommanderStorm

If you want I can change it from the local storage to something else. From the code, I saw that you guys are saving the current state of checkbox in a variable. Even I'm doing the same thing but just storing the value in local storage.

Although I tried refreshing the page, I saw no checkbox other than the intended one was checked or not. But I get your point that should be saved in user state. Not that if user closed the browser and re-opens it there. If you want I can come up with some other way as well.

kevinmatthe commented 9 months ago

It seems that this issue is still unfixed, was there a temporary solution to make it take effect?

CommanderStorm commented 9 months ago

was there a temporary solution to make it take effect?

Once the entire dashboard is saved, the checkbox updates. If you'd like to contribute a fix for this, here is our contribution guide.

BxtGeek commented 3 months ago

looks like issue is still unfixed but also temporary solution is not working

sanjogbhalla16 commented 4 weeks ago

I would like to work upon this if its still open , thank you.

CommanderStorm commented 4 weeks ago

Shure, go ahead πŸ‘

R-HNF commented 1 week ago

I'll try this issue πŸ‘

R-HNF commented 1 week ago

@CommanderStorm I have submitted PR #5250. Cloud you review it. Thank you!