Adjust warning event display (#7168)
* Adjust warning event display * Re-adjust timing
This commit is contained in:
parent
34c4ce2a9c
commit
0f03265d13
@ -115,6 +115,12 @@ function extractEvents (result?: SubmittableResult): ActionStatus[] {
|
||||
message,
|
||||
status: 'error'
|
||||
};
|
||||
} else if (isIncompleteEvent(record)) {
|
||||
return {
|
||||
action: `${section}.${method}`,
|
||||
message: 'imcomplete execution',
|
||||
status: 'eventWarn'
|
||||
};
|
||||
} else if (section === 'contracts') {
|
||||
if (method === 'ContractExecution' && data.length === 2) {
|
||||
// see if we have info for this contract
|
||||
@ -142,12 +148,6 @@ function extractEvents (result?: SubmittableResult): ActionStatus[] {
|
||||
message: 'contract evicted',
|
||||
status: 'error'
|
||||
};
|
||||
} else if (isIncompleteEvent(record)) {
|
||||
return {
|
||||
action: `${section}.${method}`,
|
||||
message: 'imcomplete execution',
|
||||
status: 'eventWarn'
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -285,8 +285,8 @@ export default React.memo(styled(Status)`
|
||||
background: teal;
|
||||
}
|
||||
|
||||
&.eventWarn > .wraper > .container {
|
||||
background: orange;
|
||||
&.eventWarn > .wrapper > .container {
|
||||
background: darkorange;
|
||||
}
|
||||
|
||||
&.completed,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user