File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/Frontend/src/components/messages2 Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ const isMassTransitConnected = useIsMassTransitConnected();
3131const store = useMessageStore ();
3232const { state } = storeToRefs (store );
3333const backLink = ref <RouteLocationAsPathGeneric >({ path: routeLinks .failedMessage .failedMessages .link });
34+
35+ const hasParticiaptedInSaga = computed (() => store .state .data .invoked_saga ?.has_saga );
36+
3437const tabs = computed (() => {
3538 const currentTabs = [
3639 {
@@ -59,10 +62,12 @@ const tabs = computed(() => {
5962 text: " Sequence Diagram" ,
6063 component: SequenceDiagram ,
6164 });
62- currentTabs .push ({
63- text: " Saga Diagram" ,
64- component: SagaDiagram ,
65- });
65+ if (hasParticiaptedInSaga .value ) {
66+ currentTabs .push ({
67+ text: " Saga Diagram" ,
68+ component: SagaDiagram ,
69+ });
70+ }
6671 }
6772
6873 return currentTabs ;
You can’t perform that action at this time.
0 commit comments