No warning for unsaved changes in dashboard
Describe the issue
Currently, if you make changes in "My filters", "My rules" or "Whitelist", but forget to press 'Apply changes' (or 'Save'), and then just either switch to another dashboard's tab, or close the browser tab altogether, then your changes are lost.
My suggestion is to display a confirmation message/popup in such cases, such as: "Your changes have not been saved. To stay on the page so you can save your changes, press Cancel".
Steps for anyone to reproduce the issue
- open uBO's dashboard | "My filters" tab (or "Whitelist" tab)
- add a filter or modify an existing one (notice that the 'Apply' button indeed becomes active)
- switch to another dashboard tab, or close the browser tab altogether.
- switch back to "My Filters" tab (or reopen: dashboard | "My filters") : notice that your changes have been lost.
Similarly, in dashboard | 'My rules', (which of course works differently than "My filters") when you press 'Edit' in "Temporary rules" and make some addition/modification but forget to press 'Save', and then switch to another dashboard tab (and switch back) or close the browser tab, your changes are lost.
Your settings
- OS/version: win10 x54
- Browser/version: Firefox 57 and Chrome 62
- uBlock Origin version: 1.14.18 in both.
Doesn't sound like an issue, sounds like you need to click the "Apply Changes" and "Save" buttons. That's why they are there...
Doesn't sound like an issue, sounds like you need to click the "Apply Changes" and "Save" buttons. That's why they are there...
Do not twist things, that's not what I meant!
I wrote that:
Currently, if you make changes in "My filters", "My rules" or "Whitelist", but forget to press 'Apply changes' (or 'Save'), and then just either switch to another dashboard's tab, or close the browser tab altogether, then your changes are lost.
My suggestion is to display a confirmation message/popup in such cases, such as: "Your changes have not been saved. To stay on the page so you can save your changes, press Cancel".
i.e. to get a confirmation message/popup whenever I switch dashboard tabs, or close the browser tab, in order to prevent accidentally losing my changes. i.e. my reasoning is close to this SO answer "Warn user before leaving web page with unsaved changes", applied both to:
- the browser page itself (containing the dashboard) and
- the dashboard's browser page frames (the dashboard's tabs).
An alternative would be to automatically save changes to My Filters tab and other tabs like Whitelist and My rules when tabs are switched.
There's no warning when closing Advanced settings tab with unsaved changes.
Declining this one.
Then maybe it's better to move Advanced settings to a pane in dashboard visible when I am an advanced user is on?
There's no warning when closing Advanced settings tab with unsaved changes.
Why would there be ? There's no adjacent tab/pane to accidently switch over. The only way you would lose any unsaved setting there, is if you close that tab/window.
@uBlock-user, you can switch over to other tabs. When you close browser window, uBO warns when there's unsaved changes in Dashboard, but not in Advanced settings.
When you close browser window, uBO warns when there's unsaved changes in Dashboard, but not in Advanced settings.
True, but the values in Advanced settings are mostly predefined and the tab itself is isolated from any other tabs, so chances of accidental loss are minimal to non-existing.