Skip to content

Commit

Permalink
fix: Create repo add aliyun provider (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnywx authored Dec 10, 2018
1 parent da9ffb0 commit fa22f2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
File renamed without changes.
17 changes: 8 additions & 9 deletions src/pages/Dashboard/Repos/Add/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import { observer, inject } from 'mobx-react';
import { Link } from 'react-router-dom';
import classNames from 'classnames';
import { translate } from 'react-i18next';
import _ from 'lodash';

import {
Checkbox, Radio, Button, Input, Select
} from 'components/Base';
import Layout, { BackBtn, CreateResource, BreadCrumb } from 'components/Layout';
import TodoList from 'components/TodoList';

import runtimeProviders from 'config/runtime-providers';

import styles from './index.scss';

@translate()
Expand Down Expand Up @@ -100,15 +103,11 @@ export default class RepoAdd extends Component {
values={providers.toJSON()}
onChange={this.store.changeProviders}
>
<Checkbox value="qingcloud" disabled={Boolean(repoId)}>
QingCloud
</Checkbox>
<Checkbox value="aws" disabled={Boolean(repoId)}>
AWS
</Checkbox>
<Checkbox value="kubernetes" disabled={Boolean(repoId)}>
Kubernetes
</Checkbox>
{_.map(runtimeProviders, (label, key) => (
<Checkbox value={key} disabled={Boolean(repoId)} key={key}>
{label}
</Checkbox>
))}
</Checkbox.Group>
</div>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Dashboard/Runtimes/Add/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from 'components/Base';
import Layout, { BackBtn, CreateResource, BreadCrumb } from 'components/Layout';
import TodoList from 'components/TodoList';
import providers from '../providers';
import providers from 'config/runtime-providers';

import styles from './index.scss';

Expand Down

0 comments on commit fa22f2b

Please sign in to comment.