Skip to content

Commit

Permalink
fix: Fix volume list status
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Jul 29, 2020
1 parent 0e8a42e commit 74d1e5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pages/clusters/containers/Storage/Volumes/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,12 @@ export default class Volumes extends React.Component {
filters: this.getStatus(),
filteredValue: getFilteredValue('status'),
width: '14%',
render: ({ phase }) => (
render: (_, { phase }) => (
<Status
type={phase}
className={styles.status}
name={t(`VOLUME_STATUS_${phase.toUpperCase()}`)}
flicker
/>
),
},
Expand Down
3 changes: 2 additions & 1 deletion src/pages/projects/containers/Volumes/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ export default class Volumes extends React.Component {
filters: this.getStatus(),
filteredValue: getFilteredValue('status'),
width: '14%',
render: ({ phase }) => (
render: (_, { phase }) => (
<Status
type={phase}
className={styles.status}
name={t(`VOLUME_STATUS_${phase.toUpperCase()}`)}
flicker
/>
),
},
Expand Down

0 comments on commit 74d1e5b

Please sign in to comment.