mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Send user to most recent pending transaction after sending a transaction.
This commit is contained in:
parent
09a4491bb1
commit
e2dc9328fc
@ -176,7 +176,7 @@ function reduceApp (state, action) {
|
|||||||
transForward: true,
|
transForward: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
case actions.CREATE_NEW_VAULT_IN_PROGRESS:
|
case actions.CREATE_NEW_VAULT_IN_PROGRESS:
|
||||||
return extend(appState, {
|
return extend(appState, {
|
||||||
currentView: {
|
currentView: {
|
||||||
name: 'createVault',
|
name: 'createVault',
|
||||||
@ -360,7 +360,7 @@ function reduceApp (state, action) {
|
|||||||
return extend(appState, {
|
return extend(appState, {
|
||||||
currentView: {
|
currentView: {
|
||||||
name: 'confTx',
|
name: 'confTx',
|
||||||
context: action.id ? indexForPending(state, action.id) : 0,
|
context: action.id ? indexForPending(state, action.id) : indexForLastPending(state),
|
||||||
},
|
},
|
||||||
transForward: action.transForward,
|
transForward: action.transForward,
|
||||||
warning: null,
|
warning: null,
|
||||||
@ -639,3 +639,7 @@ function indexForPending (state, txId) {
|
|||||||
const index = unconfTxList.indexOf(match)
|
const index = unconfTxList.indexOf(match)
|
||||||
return index
|
return index
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function indexForLastPending (state) {
|
||||||
|
return getUnconfActionList(state).length
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user