render()

in src/components/application/launch/sections/wdl-script/workflow-browser/index.js [202:226]


  render() {
    const {disabled, onClose, visible} = this.props;
    const {selectedWorkflow} = this.state;
    return (
      <Modal
        className="workflow-browser-modal"
        visible={visible}
        onCancel={onClose}
        title="Select workflow"
        footer={(
          <Footer
            disabled={disabled}
            onClose={onClose}
            onSubmit={this.onSubmit}
            selectedWorkflow={selectedWorkflow}
          />
        )}
        width="50%"
      >
        {this.pending && !this.loaded ? <Loading /> : undefined}
        {this.error ? <Alert type="error" message={this.error} /> : undefined}
        {this.loaded ? this.renderContent() : undefined}
      </Modal>
    );
  }