Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Fix #596: Notification when safe is already updated (#599)
Browse files Browse the repository at this point in the history
* Fix notification of update if the safe is already updated

* Makes the notification clickable
Displays the notification for owners only

* Identify upgrade tx

* Add red badge to Settings tab

* Fixs Padding
Removes the red dot if the user is not an owner

Co-authored-by: Fernando <[email protected]>
  • Loading branch information
Agupane and fernandomg committed Mar 9, 2020
1 parent d3bac2f commit 37a8a01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/routes/safe/components/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const Layout = (props: Props) => {
Apps
</>
)

const labelSettings = (
<>
<SettingsIcon />
Expand Down
8 changes: 1 addition & 7 deletions src/routes/safe/components/Settings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,7 @@ class Settings extends React.Component<Props, State> {
onClick={this.handleChange(1)}
>
<SafeDetailsIcon />
<Badge
badgeContent=" "
variant="dot"
invisible={!this.state.needUpdate || !granted}
color="error"
style={{ paddingRight: '10px' }}
>
<Badge badgeContent=" " variant="dot" invisible={!this.state.needUpdate || !granted} color="error" style={{paddingRight: '10px'}}>
Safe details
</Badge>
</Row>
Expand Down

0 comments on commit 37a8a01

Please sign in to comment.