Skip to content

Commit

Permalink
Merge pull request #31 from overture-stack/30-disabled-button-not-wor…
Browse files Browse the repository at this point in the history
…king

matches to enum for Disabled state
  • Loading branch information
andricDu authored Jun 5, 2019
2 parents 7d73bc8 + 3065a3a commit 46497dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Content/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ class Content extends React.Component<any, IContentState> {
const DisableButton = () => (
<RippleButton
basic
disabled={contentState === ContentState.disabling || (item || {}).status === 'Disabled'}
disabled={contentState === ContentState.disabling || (item || {}).status === 'DISABLED'}
loading={contentState === ContentState.disabling}
onClick={async () => {
this.setState({ contentState: ContentState.disabling });
await stageChange({ status: 'Disabled' });
await stageChange({ status: 'DISABLED' });
await saveChanges();
await refreshList();
this.setState({ contentState: ContentState.displaying });
Expand Down
2 changes: 1 addition & 1 deletion src/components/ListPane/ItemGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function ItemsWrapper({
item={item}
style={{
...styles.listItem,
...(item.status === 'Disabled'
...(item.status === 'DISABLED'
? {
opacity: 0.3,
fontStyle: 'italic',
Expand Down

0 comments on commit 46497dc

Please sign in to comment.