File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 59
59
let minimumStorageDeposit = 0
60
60
let visibleSurplus: number | undefined = undefined
61
61
62
+ let isPreparingOutput = false
63
+
62
64
$ : expirationTimePicker ?.setNull (giftStorageDeposit )
63
65
64
66
$ : isBaseTokenTransfer =
101
103
})
102
104
103
105
async function rebuildTransactionOutput(): Promise <void > {
106
+ isPreparingOutput = true
107
+
104
108
updateNewTransactionDetails ({
105
109
type: transactionType ,
106
110
expirationDate ,
126
130
}
127
131
} catch (err ) {
128
132
handleError (err )
133
+ } finally {
134
+ isPreparingOutput = false
129
135
}
130
136
}
131
137
261
267
classes =" w-full"
262
268
onClick ={onConfirmClick }
263
269
disabled ={isTransferring ||
270
+ isPreparingOutput ||
264
271
(layer2Parameters ?.networkAddress && ! $newTransactionDetails ?.layer2Parameters ?.gasBudget )}
265
272
isBusy ={isTransferring ||
273
+ isPreparingOutput ||
266
274
(layer2Parameters ?.networkAddress && ! $newTransactionDetails ?.layer2Parameters ?.gasBudget )}
275
+ busyMessage ={isPreparingOutput ? ' Preparing' : ' ' }
267
276
>
268
277
{localize (' actions.send' )}
269
278
</Button >
You can’t perform that action at this time.
0 commit comments