Skip to content

Commit

Permalink
fix: Fix node conditions card
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Aug 20, 2020
1 parent c9f3f75 commit b952dd8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/pages/clusters/components/ResourceTable/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ class ResourceTable extends BaseTable {
}

fetchProjects = (params = {}) => {
const { cluster } = this.props
return this.props.clusterStore.fetchProjects({
const { cluster, clusterStore } = this.props
return clusterStore.fetchProjects({
cluster,
...clusterStore.projects.filters,
...params,
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ import { Text } from 'components/Base'

import styles from './index.scss'

const Chart = ({ data }) => {
const ConditionCard = ({ data }) => {
if (!NODE_CONDITION_ICONS[data.type]) {
return null
}

const statusType = getConditionsStatus(data)

const content = (
Expand Down Expand Up @@ -69,4 +73,4 @@ const Chart = ({ data }) => {
)
}

export default Chart
export default ConditionCard
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { Columns, Column } from '@pitrix/lego-ui'

import styles from './index.scss'

const Chart = ({ data }) => (
const TaintCard = ({ data }) => (
<div className={styles.card}>
<Columns>
<Column>
Expand All @@ -44,4 +44,4 @@ const Chart = ({ data }) => (
</div>
)

export default Chart
export default TaintCard

0 comments on commit b952dd8

Please sign in to comment.