File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
src/Frontend/src/components/messages2 Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ const isMassTransitConnected = useIsMassTransitConnected();
31
31
const store = useMessageStore ();
32
32
const { state } = storeToRefs (store );
33
33
const backLink = ref <RouteLocationAsPathGeneric >({ path: routeLinks .failedMessage .failedMessages .link });
34
+
35
+ const hasParticipatedInSaga = computed (() => store .state .data .invoked_saga ?.has_saga );
36
+
34
37
const tabs = computed (() => {
35
38
const currentTabs = [
36
39
{
@@ -59,10 +62,13 @@ const tabs = computed(() => {
59
62
text: " Sequence Diagram" ,
60
63
component: SequenceDiagram ,
61
64
});
62
- currentTabs .push ({
63
- text: " Saga Diagram" ,
64
- component: SagaDiagram ,
65
- });
65
+ // Add the "Saga Diagram" tab only if the saga has been participated in
66
+ if (hasParticipatedInSaga ?.value ) {
67
+ currentTabs .push ({
68
+ text: " Saga Diagram" ,
69
+ component: SagaDiagram ,
70
+ });
71
+ }
66
72
}
67
73
68
74
return currentTabs ;
You can’t perform that action at this time.
0 commit comments