Skip to content

Commit a6099ef

Browse files
committed
Hide the saga tab if the endpoint is not part of a saga
1 parent a422379 commit a6099ef

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/Frontend/src/components/messages2/MessageView.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const isMassTransitConnected = useIsMassTransitConnected();
3131
const store = useMessageStore();
3232
const { state } = storeToRefs(store);
3333
const backLink = ref<RouteLocationAsPathGeneric>({ path: routeLinks.failedMessage.failedMessages.link });
34+
35+
const hasParticiaptedInSaga = computed(() => store.state.data.invoked_saga?.has_saga);
36+
3437
const 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;

0 commit comments

Comments
 (0)