Skip to content

Spindle not working #112

@GDue

Description

@GDue

There is a problem with the manual widget control, which is always disabled.
The reason is in the routine canClick() in the file .../Spindle/index.jsx.

canClick() {
    const { port, workflow } = this.state;

    if (!port) {
        return false;
    }
    if (workflow.state === WORKFLOW_STATE_RUNNING) {
        return false;
    }

    this.workspace.activeState.updateControllerState(this.state.controller.state);
    return this.workspace.activeState.canReceiveCommand;
}

This routine returns the property "canReceiveCommand" which is not existing in the "ActiveState"-Object.
So this routine returns "null" which is not the "true" needed to enable the spindle widget.

Replacing the line with "return this.workspace.activeState.isReady;" is enabling the widget but I am not sure, whether "isReady" is the correct property to use here.

BR
Gerhard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions