Don't display unneeded notifications (#7237)

* Cleanup overlay transparency

* Don't display "waiting in signer" messages
This commit is contained in:
Jaco Greeff 2017-12-11 11:05:24 +01:00 committed by GitHub
parent fcddc7751a
commit 16d6f98d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 9 deletions

View File

@ -110,7 +110,7 @@ $modalZ: 10001;
width: 960px; width: 960px;
.content { .content {
background: rgba(255, 255, 255, 0.95); background: #f2f2f2;
display: flex; display: flex;
flex: 1; flex: 1;
max-width: calc(100vw - 2em); max-width: calc(100vw - 2em);

View File

@ -66,6 +66,12 @@ class Requests extends Component {
return null; return null;
} }
const status = this.renderStatus(request);
if (!status) {
return null;
}
const state = this.getTransactionState(request); const state = this.getTransactionState(request);
const displayedTransaction = { ...transaction }; const displayedTransaction = { ...transaction };
@ -103,7 +109,7 @@ class Requests extends Component {
style={ requestStyle } style={ requestStyle }
> >
<div className={ statusClasses.join(' ') }> <div className={ statusClasses.join(' ') }>
{ this.renderStatus(request) } { status }
</div> </div>
{ {
state.type === ERROR_STATE state.type === ERROR_STATE
@ -193,12 +199,7 @@ class Requests extends Component {
); );
} }
return ( return null;
<FormattedMessage
id='requests.status.waitingForSigner'
defaultMessage='Waiting for authorization in the Parity Signer'
/>
);
} }
getTransactionState (request) { getTransactionState (request) {

View File

@ -16,7 +16,10 @@
*/ */
.request { .request {
margin-left: -1.5em;
padding-left: 1.5em;
&:nth-child(even) { &:nth-child(even) {
background: rgba(0, 0, 0, 0.04); background: #eee;
} }
} }