From 5587db076dbe70fca4de8dd0227278a84fdf9fa7 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 6 May 2024 19:25:14 -0600 Subject: [PATCH] Bumping mininum supported Service Control version (#1842) --- .../src/composables/serviceServiceControl.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Frontend/src/composables/serviceServiceControl.ts b/src/Frontend/src/composables/serviceServiceControl.ts index da41a94b3..79dbf4d2b 100644 --- a/src/Frontend/src/composables/serviceServiceControl.ts +++ b/src/Frontend/src/composables/serviceServiceControl.ts @@ -43,7 +43,7 @@ export const monitoringConnectionState = reactive({ export const environment = reactive({ monitoring_version: "", sc_version: "", - minimum_supported_sc_version: "1.39.0", + minimum_supported_sc_version: "4.33.4", is_compatible_with_sc: true, sp_version: window.defaultConfig && window.defaultConfig.version ? window.defaultConfig.version : "1.1.0", supportsArchiveGroups: false, @@ -183,12 +183,10 @@ export async function useServiceControlConnections() { return connections; } -watch(environment, (newValue, oldValue) => { - if (newValue.is_compatible_with_sc !== oldValue.is_compatible_with_sc) { - if (!newValue.is_compatible_with_sc) { - useShowToast(TYPE.ERROR, "Error", `You are using Service Control version ${newValue.sc_version}. Please, upgrade to version ${newValue.minimum_supported_sc_version} or higher to unlock new functionality in ServicePulse.`); - } - } +watch(() => environment.is_compatible_with_sc, (newValue) => { + if (newValue == false) { + useShowToast(TYPE.ERROR, "Error", `You are using Service Control version ${environment.sc_version}. Please, upgrade to version ${environment.minimum_supported_sc_version} or higher to unlock new functionality in ServicePulse.`); + } }); async function getServiceControlVersion() {