Adjust warning event display (#7168)

* Adjust warning event display

* Re-adjust timing
This commit is contained in:
Jaco 2022-03-15 20:26:03 +01:00 committed by GitHub
parent 34c4ce2a9c
commit 0f03265d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -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'
};
}
}

View File

@ -285,8 +285,8 @@ export default React.memo(styled(Status)`
background: teal;
}
&.eventWarn > .wraper > .container {
background: orange;
&.eventWarn > .wrapper > .container {
background: darkorange;
}
&.completed,