Comments (6)
A "Save as" button might be a nice way to achieve this. That way the user can edit their existing config and then decide to save their changes over their existing config with the Save
button or as a new config with Save as
. This means we don't have to populate the editor with new data and we don't need to keep track of whether the user is editing a new file or an existing one (since we only get that information when we need to save it).
On the topic of saving, the existing save_config
function in the ControlReceiver class could take care of this. If given another argument file_name
, it could save a new file if none exists or perform the existing rolling backup code if it does.
from sights.
Good thinking! Definitely a good way to do this. Would you also want a delete config button? And in that case, how do we handle it?
from sights.
Hmm, I didn't think of that, but it's a good idea. Will Delete
delete the currently active config?
I'd say the receiver can still do it, we'd just need a new command - unless you had a different way in mind?
Both Save as
and Delete
could automatically refresh the config list dropdown.
from sights.
I feel like it would be easier and safer to only allow the user to delete non-active configs. This means there is always at least one valid config file.
We could probably have either a separate "Delete Config" pop up menu with a basic list of configs with a delete button for all but the active config, or (it's probably not possible, but) integrate it into the config selector like this (excuse the ms paint):
from sights.
That would be much better. It's definitely possible to add a button to a dropdown, but I think we'd have to make our own rather than using the <select>
tag.
from sights.
Created a new feature request for deleting. Seems appropriate to track it separately since this issue will be closed once the save-as branch is merged.
Edit: Apologies, #52 is the issue.
from sights.
Related Issues (20)
- Accent Colour Theming
- I2C multiplexer support
- Toggle graph HOT 1
- Implement "vanilla-picker" for colour picking in the visual config editor
- Add emergency stop button to interface HOT 1
- Add ability to see limit of circle graphs via a tooltip
- There are unsaved changes when interface is loaded while service is stopped
- Create a new config file location
- Reduce Bandwidth Usage HOT 2
- Replace Motion with an integrated camera streaming solution
- Replace Server-to-Client WebSocket Connection HOT 1
- Standardise thermal camera wrapper output and graph input HOT 7
- Thermal Camera Graph Improvements HOT 5
- Replace config files with profiles, introduce a Sights config file HOT 3
- The Sights Interface Design Wizard 2.0 HOT 3
- Replace ShellInABox with integrated SSH console
- Advanced gamepad controls and mappings
- First-class Android support
- Revamp Sights installation process
- Support for Actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sights.