How to use the @blueprintjs/icons.IconNames.APPLICATION 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 apache / druid / web-console / src / components / header-bar / header-bar.tsx View on Github external
disabled={!capabilities.hasSqlOrCoordinatorAccess()}
        />
        

        
        
      
      
        
        
          <button>
        
        
          </button><button>
        
      
      {aboutDialogOpen &amp;&amp;  setAboutDialogOpen(false)} /&gt;}
      {doctorDialogOpen &amp;&amp;  setDoctorDialogOpen(false)} /&gt;}</button>
github apache / druid / web-console / src / views / datasource-view / datasource-view.tsx View on Github external
renderBulkDatasourceActions() {
    const { goToQuery, capabilities } = this.props;

    return (
      
        {capabilities.hasSql() &amp;&amp; (
          <menuitem> goToQuery(DatasourcesView.DATASOURCE_SQL)}
          /&gt;
        )}
      </menuitem>
    );
  }
github apache / druid / web-console / src / views / datasource-view / datasource-view.tsx View on Github external
getDatasourceActions(
    datasource: string,
    disabled: boolean,
    rules: any[],
    compactionConfig: Record,
  ): BasicAction[] {
    const { goToQuery, goToTask, capabilities } = this.props;

    const goToActions: BasicAction[] = [
      {
        icon: IconNames.APPLICATION,
        title: 'Query with SQL',
        onAction: () =&gt; goToQuery(`SELECT * FROM ${escapeSqlIdentifier(datasource)}`),
      },
      {
        icon: IconNames.GANTT_CHART,
        title: 'Go to tasks',
        onAction: () =&gt; goToTask(datasource),
      },
    ];

    if (!capabilities.hasCoordinatorAccess()) {
      return goToActions;
    }

    if (disabled) {
      return [
github apache / druid / web-console / src / views / services-view / services-view.tsx View on Github external
renderBulkServicesActions() {
    const { goToQuery, capabilities } = this.props;

    return (
      
        {capabilities.hasSql() &amp;&amp; (
          <menuitem> goToQuery(ServicesView.SERVICE_SQL)}
          /&gt;
        )}
      </menuitem>
    );
  }
github apache / druid / web-console / src / views / segments-view / segments-view.tsx View on Github external
renderBulkSegmentsActions() {
    const { goToQuery, capabilities } = this.props;
    const lastSegmentsQuery = this.segmentsSqlQueryManager.getLastIntermediateQuery();

    return (
      
        {capabilities.hasSql() &amp;&amp; (
          <menuitem disabled="{!lastSegmentsQuery}"> {
              if (!lastSegmentsQuery) return;
              goToQuery(lastSegmentsQuery);
            }}
          /&gt;
        )}
      </menuitem>
    );
  }
github apache / druid / web-console / src / views / ingestion-view / ingestion-view.tsx View on Github external
renderBulkSupervisorActions() {
    const { capabilities, goToQuery } = this.props;

    return (
      &lt;&gt;
        
          {capabilities.hasSql() &amp;&amp; (
            <menuitem> goToQuery(IngestionView.SUPERVISOR_SQL)}
            /&gt;
          )}
          <menuitem> this.setState({ supervisorSpecDialogOpen: true })}
          /&gt;
          <menuitem> this.setState({ showResumeAllSupervisors: true })}
          /&gt;
          </menuitem></menuitem></menuitem>