Git Product home page Git Product logo

Comments (5)

praxiq avatar praxiq commented on June 25, 2024 1

Steps to reproduce this problem consistently:

  1. Assign workers to tasks until there is one free worker. Assign this last worker to any task - let's say, "trapper." (Or, if all workers are already assigned, try to assign one more to trapper.) This will disable the trapper plus button. (In the dev tools, the attribute disabled="disabled" gets added to the button).
  2. Remove a worker from any task other than trapper, so you have a free worker again. The trapper "+" button, disabled in step 1, will incorrectly remain disabled.
  3. Try to assign this worker to "trapper." It won't work.
  4. To fix, remove a worker from "trapper." This will "unlock" the "+" button so you can add more trappers again.
  5. If the trapper "+" button is disabled when you have no trappers assigned, then you can't remove a trapper, and the only way to recover is to reload the page. (You can get into this state by clicking the "+" button when you have no trappers, and no free workers to assign.)

from level13.

CondoSlime avatar CondoSlime commented on June 25, 2024

a reliable way to stop buttons from responding is moving to a different camp and trying to assign workers.

from level13.

livinginformation avatar livinginformation commented on June 25, 2024

I've looked the code over a little, and a 'fix' could be done by adding a function that triggers every time the number of free workers changes, that re-evaluates the state of the stepper buttons.

I may implement this myself, shouldn't be too hard.

from level13.

ivangift avatar ivangift commented on June 25, 2024

Or making things simpler, just remove the logic of setting disabled. This is only a nice-to-have feature, even if button is not disabled, clicking on it will not bring in any problems.

from level13.

nroutasuo avatar nroutasuo commented on June 25, 2024

This should finally be fixed on master and the fix will be in the next update. Thank you for the detailed reproduction steps!

from level13.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.