How to use the @blueprintjs/icons.IconNames.DISABLE function in @blueprintjs/icons

To help you get started, we’ve selected a few @blueprintjs/icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dagster-io / dagster / js_modules / dagit / src / plan / ReexecuteButton.tsx View on Github external
onReexecuteStep &&
      [IStepState.FAILED, IStepState.SUCCEEDED].includes(state)
    )
  ) {
    return null;
  }

  // if execution artifacts are not persisted, we can reexecute but we want to communicate
  // that we could if configuration was changed
  if (!executionArtifactsPersisted) {
    return (
      
        
      
    );
  }

  return (
     onReexecuteStep(stepKey)}
    >
      
    
  );
}
github source-academy / cadet-frontend / src / components / assessment / index.tsx View on Github external
case GradingStatuses.grading:
      iconName = IconNames.TIME;
      intent = Intent.WARNING;
      tooltip = 'Grading in progress';
      break;

    case GradingStatuses.none:
      iconName = IconNames.CROSS;
      intent = Intent.DANGER;
      tooltip = 'Not graded yet';
      break;

    default:
      // Shows default icon if this assessment is ungraded
      iconName = IconNames.DISABLE;
      intent = Intent.PRIMARY;
      tooltip = `Not applicable`;
      break;
  }

  return (
    
      
    
  );
};
github apache / druid / web-console / src / views / services-view / services-view.tsx View on Github external
private getWorkerActions(workerHost: string, disabled: boolean): BasicAction[] {
    if (disabled) {
      return [
        {
          icon: IconNames.TICK,
          title: 'Enable',
          onAction: () => this.setState({ middleManagerEnableWorkerHost: workerHost }),
        },
      ];
    } else {
      return [
        {
          icon: IconNames.DISABLE,
          title: 'Disable',
          onAction: () => this.setState({ middleManagerDisableWorkerHost: workerHost }),
        },
      ];
    }
  }
github source-academy / cadet-frontend / src / components / academy / grading / GradingStatusCell.tsx View on Github external
intent = Intent.SUCCESS;
        break;
      case GradingStatuses.grading:
        iconName = IconNames.TIME;
        tooltip = `Partially graded: ${this.props.data.gradedCount} of 
          ${this.props.data.questionCount}`;
        intent = Intent.WARNING;
        break;
      case GradingStatuses.none:
        iconName = IconNames.CROSS;
        tooltip = `Not graded: ${this.props.data.gradedCount} of 
          ${this.props.data.questionCount}`;
        intent = Intent.DANGER;
        break;
      default:
        iconName = IconNames.DISABLE;
        tooltip = 'Not applicable';
        intent = Intent.PRIMARY;
    }

    return (
      <div>
        
          
        
      </div>
    );
  }
}
github dagster-io / dagster / js_modules / dagit / src / runs / Run.tsx View on Github external
const isUnknown = run.pipeline.__typename === "UnknownPipeline";

    if (run.status !== PipelineRunStatus.FAILURE) {
      return null;
    }

    if (!run.executionPlan.artifactsPersisted) {
      return (
        
           null}
          /&gt;
        
      );
    }

    return (