From 11288acc201d5b6afd6eb140d7e54784774c1c44 Mon Sep 17 00:00:00 2001 From: Igor Richter Date: Mon, 8 Jan 2024 09:54:14 +0100 Subject: [PATCH] test and logic fix --- src/components/rooms/RoomExternalToolCard.vue | 14 +++++++------- .../schoolExternalToolConfigurationFactory.ts | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/rooms/RoomExternalToolCard.vue b/src/components/rooms/RoomExternalToolCard.vue index e209ec7b73..3eb0d06bb1 100644 --- a/src/components/rooms/RoomExternalToolCard.vue +++ b/src/components/rooms/RoomExternalToolCard.vue @@ -16,11 +16,11 @@ {{ t("pages.rooms.tools.incomplete") }} - - {{ t("pages.rooms.tools.incomplete") }} + + {{ t("pages.rooms.tools.outdated") }} @@ -133,8 +133,8 @@ export default defineComponent({ const isToolLaunchable = computed(() => { return ( - !isToolOutdated.value || - !isToolDeactivated.value || + !isToolOutdated.value && + !isToolDeactivated.value && !isToolIncomplete.value ); }); diff --git a/tests/test-utils/factory/schoolExternalToolConfigurationFactory.ts b/tests/test-utils/factory/schoolExternalToolConfigurationFactory.ts index 9435bedd2a..d626acd94c 100644 --- a/tests/test-utils/factory/schoolExternalToolConfigurationFactory.ts +++ b/tests/test-utils/factory/schoolExternalToolConfigurationFactory.ts @@ -6,6 +6,7 @@ export const schoolToolConfigurationStatusFactory = return { isOutdatedOnScopeContext: false, isOutdatedOnScopeSchool: false, + isIncompleteOnScopeContext: false, isDeactivated: false, }; });