Skip to content

Commit

Permalink
feat(sampledata): Remove rename bucket button from create bucket overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
ebb-tide committed Mar 3, 2020
1 parent ce4a5e2 commit bde96fd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ui/src/buckets/components/BucketOverlayForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ interface Props {
onChangeRetentionRule: (seconds: number) => void
onChangeRuleType: (t: 'expire' | null) => void
onChangeInput: (e: ChangeEvent<HTMLInputElement>) => void
onClickRename: () => void
disableRenaming: boolean
buttonText: string
onClickRename?: () => void
}

export default class BucketOverlayForm extends PureComponent<Props> {
Expand Down Expand Up @@ -93,11 +93,13 @@ export default class BucketOverlayForm extends PureComponent<Props> {
onClick={onCloseModal}
type={ButtonType.Button}
/>
<Button
text="Rename"
color={ComponentColor.Danger}
onClick={onClickRename}
/>
{buttonText === 'Save Changes' && (
<Button
text="Rename"
color={ComponentColor.Danger}
onClick={onClickRename}
/>
)}
<Button
text={buttonText}
color={this.submitButtonColor}
Expand Down

0 comments on commit bde96fd

Please sign in to comment.