diff --git a/src/Frontend/src/composables/serviceServiceControl.ts b/src/Frontend/src/composables/serviceServiceControl.ts index da41a94b39..79dbf4d2ba 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() {