Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
d34fc554
Commit
d34fc554
authored
Jun 09, 2025
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tx info: tac operation stage could be an array
parent
26b37264
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
tac.ts
lib/operations/tac.ts
+4
-4
TxDetailsTacOperation.tsx
ui/tx/details/TxDetailsTacOperation.tsx
+3
-3
No files found.
lib/operations/tac.ts
View file @
d34fc554
...
@@ -22,11 +22,11 @@ export function getTacOperationStatus(type: tac.OperationType) {
...
@@ -22,11 +22,11 @@ export function getTacOperationStatus(type: tac.OperationType) {
}
}
export
function
getTacOperationStage
(
data
:
tac
.
OperationDetails
,
txHash
:
string
)
{
export
function
getTacOperationStage
(
data
:
tac
.
OperationDetails
,
txHash
:
string
)
{
const
currentStep
=
data
.
status_history
.
fi
nd
((
step
)
=>
step
.
transactions
.
some
((
tx
)
=>
tx
.
hash
.
toLowerCase
()
===
txHash
.
toLowerCase
()));
const
currentStep
=
data
.
status_history
.
fi
lter
((
step
)
=>
step
.
transactions
.
some
((
tx
)
=>
tx
.
hash
.
toLowerCase
()
===
txHash
.
toLowerCase
()));
if
(
!
currentStep
)
{
if
(
currentStep
.
length
===
0
)
{
return
null
;
return
;
}
}
return
STATUS_LABELS
[
currentStep
.
type
]
;
return
currentStep
.
map
((
step
)
=>
STATUS_LABELS
[
step
.
type
])
;
}
}
export
const
STATUS_SEQUENCE
:
Array
<
tac
.
OperationStage_StageType
>
=
[
export
const
STATUS_SEQUENCE
:
Array
<
tac
.
OperationStage_StageType
>
=
[
...
...
ui/tx/details/TxDetailsTacOperation.tsx
View file @
d34fc554
...
@@ -35,7 +35,7 @@ const TxDetailsTacOperation = ({ tacOperations, isLoading, txHash }: Props) => {
...
@@ -35,7 +35,7 @@ const TxDetailsTacOperation = ({ tacOperations, isLoading, txHash }: Props) => {
>
>
{
tacOperations
.
map
((
tacOperation
)
=>
{
{
tacOperations
.
map
((
tacOperation
)
=>
{
const
tags
=
[
const
tags
=
[
getTacOperationStage
(
tacOperation
,
txHash
),
...(
getTacOperationStage
(
tacOperation
,
txHash
)
||
[]
),
getTacOperationStatus
(
tacOperation
.
type
),
getTacOperationStatus
(
tacOperation
.
type
),
];
];
...
@@ -46,8 +46,8 @@ const TxDetailsTacOperation = ({ tacOperations, isLoading, txHash }: Props) => {
...
@@ -46,8 +46,8 @@ const TxDetailsTacOperation = ({ tacOperations, isLoading, txHash }: Props) => {
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
/>
/>
{
tags
.
length
>
0
&&
(
{
tags
.
length
>
0
&&
(
<
HStack
flexShrink=
{
0
}
>
<
HStack
flexShrink=
{
0
}
flexWrap=
"wrap"
>
{
tags
.
map
((
tag
)
=>
<
Tag
key=
{
tag
}
loading=
{
isLoading
}
>
{
tag
}
</
Tag
>)
}
{
tags
.
map
((
tag
)
=>
<
Tag
key=
{
tag
}
loading=
{
isLoading
}
flexShrink=
{
0
}
>
{
tag
}
</
Tag
>)
}
</
HStack
>
</
HStack
>
)
}
)
}
</
HStack
>
</
HStack
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment