@@ -80,10 +80,16 @@ const handleClose = () => {
8080 </Text >
8181 </Flex >
8282 <Flex v-else align =" center" gap =" 6" >
83- <Icon name =" check-circle" size =" 12" color =" green" />
84- <Text size =" 14" weight =" 600" color =" primary" >
83+ <Icon
84+ :name =" tx.status === 'success' ? 'check-circle' : 'close-circle'"
85+ size =" 12"
86+ :color =" tx.status === 'success' ? 'green' : 'red'"
87+ />
88+
89+ <Text v-if =" tx.status === 'success'" size =" 14" weight =" 600" color =" primary" >
8590 {{ cacheStore.tx.type === "send" ? "Successfuly sent" : "Successfuly submited" }}
8691 </Text >
92+ <Text v-else size =" 14" weight =" 600" color =" primary" > Failed </Text >
8793 </Flex >
8894
8995 <Text size =" 13" weight =" 600" color =" tertiary" >
@@ -110,7 +116,11 @@ const handleClose = () => {
110116 <div :class =" $style.line" />
111117 </div >
112118
113- <Flex direction =" column" justify =" between" :class =" [$style.bg, !isFound ? $style.sending : $style.success]" >
119+ <Flex
120+ direction =" column"
121+ justify =" between"
122+ :class =" [$style.bg, !isFound && $style.sending, tx?.status === 'success' ? $style.success : $style.failed]"
123+ >
114124 <Flex v-for =" i in 8" align =" center" justify =" between" >
115125 <div
116126 v-for =" j in 50"
@@ -140,7 +150,11 @@ const handleClose = () => {
140150 <Text size =" 12" weight =" 500" color =" tertiary" :selectable =" true" > {{ cacheStore.tx.to }} </Text >
141151 </Flex >
142152
143- <Flex direction =" column" justify =" between" :class =" [$style.bg, !isFound ? $style.awaiting : $style.success]" >
153+ <Flex
154+ direction =" column"
155+ justify =" between"
156+ :class =" [$style.bg, !isFound && $style.sending, tx?.status === 'success' ? $style.success : $style.failed]"
157+ >
144158 <Flex v-for =" i in 8" align =" center" justify =" between" >
145159 <div
146160 v-for =" j in 50"
@@ -224,6 +238,11 @@ const handleClose = () => {
224238 </Flex >
225239 </Flex >
226240
241+ <Flex v-if =" tx?.status === 'failed'" direction =" column" gap =" 8" :class =" $style.error_msg" >
242+ <Text size =" 12" weight =" 500" color =" secondary" mono > Error Message </Text >
243+ <Text size =" 12" weight =" 500" height =" 120" color =" tertiary" mono > {{ tx?.error }}</Text >
244+ </Flex >
245+
227246 <Flex direction =" column" gap =" 8" >
228247 <Button @click =" handleClose" :link =" `/tx/${tx?.hash}`" type =" secondary" size =" small" wide :disabled =" !isFound" >
229248 View Transaction
@@ -237,6 +256,13 @@ const handleClose = () => {
237256</template >
238257
239258<style module>
259+ .error_msg {
260+ border-radius : 6px ;
261+ background : var (--op-5 );
262+
263+ padding : 8px ;
264+ }
265+
240266.wallet {
241267 position : relative ;
242268
@@ -332,6 +358,12 @@ const handleClose = () => {
332358 background : var (--green );
333359 }
334360 }
361+
362+ &.failed {
363+ & .circle {
364+ background : var (--red );
365+ }
366+ }
335367}
336368
337369@keyframes blink {
0 commit comments