Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the Save Sequence button until one step is added #395

Closed
tech4GT opened this issue Oct 6, 2018 · 12 comments
Closed

Disable the Save Sequence button until one step is added #395

tech4GT opened this issue Oct 6, 2018 · 12 comments

Comments

@tech4GT
Copy link
Member

tech4GT commented Oct 6, 2018

First Timers Only

Hi, this is a first-timers-only issue. This means this has been worked to make it more legible to folks who either haven't contributed to our codebase before or even folks who haven't contributed to open source before.

If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!

The Issue

The save-sequence button in the UI should be disabled until some step is added in the sequence.

Here's where the save-sequence button is made:

<button class="btn btn-primary btn-lg" name="save-sequence" id="save-seq">Save Sequence</button>

We can make the button disable at the start and then enable it on first click of Add step button. We have to also disable the button if all the steps are removed.

@gitmate gitmate bot added the enhancement label Oct 6, 2018
@tech4GT
Copy link
Member Author

tech4GT commented Oct 6, 2018

@jywarren Should we make this an FTO?

@gitmate
Copy link

gitmate bot commented Oct 6, 2018

GitMate.io thinks the contributor most likely able to help you is @jywarren.

Possibly related issues are #303 (Disable/dim the Add step button until a module is selected), #302 (Disable/dim the Save button until step inputs have been changed), #342 (Add a success prompt for saved sequence), #377 (Module save button is sometimes greyed out when needed), and #363 (add placeholder when brightness step applied).

1 similar comment
@gitmate
Copy link

gitmate bot commented Oct 6, 2018

GitMate.io thinks the contributor most likely able to help you is @jywarren.

Possibly related issues are #303 (Disable/dim the Add step button until a module is selected), #302 (Disable/dim the Save button until step inputs have been changed), #342 (Add a success prompt for saved sequence), #377 (Module save button is sometimes greyed out when needed), and #363 (add placeholder when brightness step applied).

@jywarren
Copy link
Member

jywarren commented Oct 9, 2018 via email

@tech4GT
Copy link
Member Author

tech4GT commented Oct 11, 2018

@Mridul97 Could you format this into a first timers issue, much thanks!!

@Mridul97
Copy link

Done! Should we make it a gci-candidate issue?

@maciejmyslinski
Copy link

I'm on it.

@Divy123
Copy link
Member

Divy123 commented Oct 18, 2018

Is this issue still open?

@tech4GT
Copy link
Member Author

tech4GT commented Oct 18, 2018

@maciejmyslinski Are you still pursuing this one? If not @Divy123 can proceed with this. Thanks!

@Divy123
Copy link
Member

Divy123 commented Oct 27, 2018

@tech4GT I have taken up this issue as of now and started with the code base.

ref.modules[name].expandSteps = function expandSteps(stepsArray) {
for (var step of stepsArray) {
ref.addSteps(step['name'], step['options']);

Is this the array (stepsArray) the one with number of steps?

@tech4GT
Copy link
Member Author

tech4GT commented Oct 27, 2018

@Divy123 No you are looking in the wrong place, you need to look at the UI in examples folder and not the src.

@harshkhandeparkar
Copy link
Member

This already works. Closing this one. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants