Reset button and green tick in settings are causing issues for plugins

Am i the only one who struggles with losing settings because the green tick to save settings and the reset button are in the same place? I think its because i work while travelling so often have spotty wifi, but it so easy to click and save and then either hold the button for too long, or see no reaction so you click it again thinking it hadn’t gone through - which then wipes your settings.

Probably by default this is a minor inconvenience, but some of the plugins and themese have definitions/settings which can take hours to set up, and one click which can easily happen without intending, and they are all gone.

Some suggestions are:

  • to have the reset button just below where the tick appears
  • an offset ‘confirm reset’ modal
  • discourse recognises when there is a significant amount of text in that setting and conditionally shows the ‘confirm’ modal
  • a setting to turn the confirm modal on or off

But you can click the save button as you save each one. There is no reason that you’d lose more than one value at a time.

EDIT: But I didn’t understand about settings that hold many values and wiping them all away with one errant click.

1 Like

@pfaffman

I set around 50 of these on the Kanban Plugin and lost them all with either a double click or holding down the click button too long. Not too sure which.

A few days ago i had the exact same issue with the ‘Custom Header Links’ plugin, and decided to post about it as if themes and plugins are making these menus contain large amounts of info they shouldn’t be so easy to accidentally delete due to a poor wifi connection (and partly to vent).

2 Likes

On latest Discourse, saving one of the theme settings doesn’t wipe all the others. This was fixed a few weeks ago, so if you aren’t up to date, please update.

I think this is something that Discourse can’t help you with. If you’re on a poor connection, you’ll have issues with a variety of actions on a Discourse site (or website in general for that matter).

4 Likes

@pmusaraj ours is the most up to date (v2.4.0.beta).

It is not wiping all settings. The issue is theme and plugin builders are expanding a single setting to contain a vast amount of info. See the screenshot above. One reset button and we have about 40 categories and subcategories defined there.

It seems like bad practice on the developers part (that theme component is in its early stages), but as i’ve seen it twice in a week on fairly popular plugins (and i’ve only used three this week), it is probably something worth looking into a solution to.