Skip to content

Commit

Permalink
fix: Fix add component for application
Browse files Browse the repository at this point in the history
  • Loading branch information
leoliu committed May 24, 2020
1 parent 3139461 commit e8e0a25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/actions/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { Modal, Notify } from 'components/Base'

import DeployAppModal from 'projects/components/Modals/DeployApp'
import CreateAppModal from 'projects/components/Modals/CreateApp'
import CreateServiceModal from 'projects/components/Modals/ServiceCreate/InApp'

export default {
'app.deploy': {
Expand Down Expand Up @@ -70,7 +71,7 @@ export default {
detail,
cluster,
namespace,
modal: CreateAppModal,
modal: CreateServiceModal,
...props,
})
},
Expand Down
3 changes: 3 additions & 0 deletions src/locales/zh/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export default {

'Select Clusters': '集群选择',

'Scheduler scheduling times': '调度器调度次数',
'Failed scheduling pods': '调度失败的容器组',

NO_CLUSTER_TIP: '请添加至少 1 个集群',
NO_CLUSTER_TIP_DESC:
'集群是一组运行着 Kubernetes 的节点(物理或者虚拟机), Kubesphere 的功能也依托于集群中的节点来运行',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ export default class KubernetesStatus extends Component {
<div className={styles.level}>
<Text
title={schedule_attempts_count.scheduled}
description={t('调度器调度次数')}
description={t('Scheduler scheduling times')}
/>
<Text
title={schedule_attempts_count.error}
description={t('调度失败的容器组')}
description={t('Failed scheduling pods')}
/>
</div>
</Loading>
Expand Down

0 comments on commit e8e0a25

Please sign in to comment.