How to use the choerodon-ui/pro.Modal.open function in choerodon-ui

To help you get started, we’ve selected a few choerodon-ui 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 choerodon / manager-service / react / src / app / iam / containers / global / gray-released / HostTable.jsx View on Github external
const createHost = () => {
    const currentRecord = hostTableDataSet.create({});
    Modal.open({
      title: '创建主机',
      key: ModalKey,
      drawer: true,
      style: {
        width: '51.39%',
      },
      children: (
        
      ),
      onOk: () => hostTableDataSet.submit(),
      onCancel: () => hostTableDataSet.splice(currentRecord.index, 1),
    });
  };
github choerodon / devops-service / react / routes / resource / main-view / contents / application / cipher / index.js View on Github external
function handleEdit(record) {
    Modal.open({
      key: modalKey,
      style: modalStyle,
      drawer: true,
      title: formatMessage({ id: `${intlPrefix}.cipher.edit` }),
      children: ,
      okText: formatMessage({ id: 'save' }),
    });
  }
github choerodon / devops-service / react / routes / resource / main-view / contents / config-detail / modals / Modals.js View on Github external
function openDetail() {
    Modal.open({
      key: modalKey1,
      title: formatMessage({ id: `${intlPrefix}.config-map.detail` }),
      children: ,
      drawer: true,
      style: modalStyle,
      okText: formatMessage({ id: 'close' }),
      okCancel: false,
    });
  }
github choerodon / devops-service / react / routes / resource / main-view / contents / network / modals / Modals.js View on Github external
function openModal() {
    Modal.open({
      key: modalKey,
      style: modalStyle,
      drawer: true,
      title: formatMessage({ id: 'network.header.create' }),
      children: ,
      okText: formatMessage({ id: 'create' }),
    });
  }
github choerodon / devops-service / react / routes / resource / main-view / contents / custom-detail / modals / Modals.js View on Github external
function openDetail() {
    Modal.open({
      key: modalKey1,
      title: formatMessage({ id: `${intlPrefix}.custom-resource.detail` }),
      children: ,
      drawer: true,
      style: modalStyle,
      okText: formatMessage({ id: 'close' }),
      okCancel: false,
    });
  }
github choerodon / devops-service / react / routes / environment / main-view / contents / group / Group.js View on Github external
async function openEffectModal(record) {
    const envId = record.get('id');
    const effectModal = Modal.open({
      key: effectKey,
      title: formatMessage({ id: `${intlPrefix}.stop.title` }, { name }),
      children: ,
      footer: null,
    });
    const res = await checkStatus(record);
    if (res) {
      try {
        const result = await mainStore.checkEffect(projectId, envId);
        if (handlePromptError(result)) {
          effectModal.update({
            children: formatMessage({ id: `${intlPrefix}.stop.des` }),
            okText: formatMessage({ id: 'ok' }),
            okCancel: true,
            onOk: () => handleEffect(envId, false),
            footer: ((okBtn, cancelBtn) => (
github choerodon / devops-service / react / routes / code-manager / contents / branch / index.js View on Github external
openRemove = (name) => {
    const {
      intl: { formatMessage },
    } = this.props;
    this.setState({ name });
    ProModal.open({
      key: deleteKey,
      title: formatMessage({ id: 'branch.action.delete.title' }, { name }),
      children: formatMessage({ id: 'branch.delete.tooltip' }),
      onOk: this.handleDelete,
      onCancel: this.closeRemove,
      okText: formatMessage({ id: 'delete' }),
      okProps: { color: 'red' },
      cancelProps: { color: 'dark' },
    });
  };
github choerodon / devops-service / react / routes / resource / main-view / contents / secret-detail / modals / Modals.js View on Github external
function openDetail() {
    Modal.open({
      key: modalKey1,
      title: formatMessage({ id: `${intlPrefix}.secret.detail` }),
      children: ,
      drawer: true,
      style: modalStyle,
      okText: formatMessage({ id: 'close' }),
      okCancel: false,
    });
  }
github choerodon / devops-service / react / routes / environment / main-view / sidebar / tree-item / GroupItem.js View on Github external
function confirmDelete() {
    const name = record.get('name');
    Modal.open({
      movable: false,
      closable: false,
      header: true,
      key: confirmKey,
      title: formatMessage({ id: `${intlPrefix}.group.delete` }, { name }),
      children: <div>{formatMessage({ id: `${intlPrefix}.group.delete.warn` })}</div>,
      onOk: handleDelete,
    });
  }
github choerodon / devops-service / react / routes / resource / main-view / contents / configMap / Content.js View on Github external
function openModal() {
    Modal.open({
      key: modalKey,
      style: modalStyle,
      drawer: true,
      title: formatMessage({ id: `${intlPrefix}.configMap.edit` }),
      children: ,
      okText: formatMessage({ id: 'save' }),
    });
  }