Add boolean option settings
Right now, there's only one type of settings option: text input. We should add booleans, like miniature switches that you can turn on and off. It would be super helpful for enabling and disabling smaller features within features.
Can I work on it?
Can I work on it?
Sure!
hi i would like to work on it.....
I would like to work on this
@achiverram28 @ojninja16 alright!
Could you glance through how to start our work , how should we proceed
If this issue is still open, I would like to work on it!
Is it possible for me to be assigned to this task?
@devilkiller-ag @YashM246 @achiverram28 @ojninja16
Each feature (in the /features/features.json file) has the option to add options to their features that users can set.
The /extras/popup.js file is what displays the options.
Ok. so how should we proceed and what changes we should make , please give us a detailed overview
Yes, please guide us.
Alright, so:
At this line, there's an array with a list of options. You can currently add as many as you want, but they just look for string values.
At this line, the JS file creates the actual element for which users can enter the value for the option. It sets the function for saving the options and everything. What we need is a way for the features.json file to specify whether it's a string or a boolean, and, if it's a boolean, will create a slider similar to the one that features use for enabling and disabling (image attached).
All the javascript still works completely, the only thing you would need to change is how the popup.js file interprets the options for whether it's a boolean or a string.
If this issue is still open, I would like to be assigned to it!
Should this maybe be closed?