Skip to content

Commit 5587db0

Browse files
authored
Bumping mininum supported Service Control version (#1842)
1 parent ee98dd4 commit 5587db0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Frontend/src/composables/serviceServiceControl.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const monitoringConnectionState = reactive<ConnectionState>({
4343
export const environment = reactive({
4444
monitoring_version: "",
4545
sc_version: "",
46-
minimum_supported_sc_version: "1.39.0",
46+
minimum_supported_sc_version: "4.33.4",
4747
is_compatible_with_sc: true,
4848
sp_version: window.defaultConfig && window.defaultConfig.version ? window.defaultConfig.version : "1.1.0",
4949
supportsArchiveGroups: false,
@@ -183,12 +183,10 @@ export async function useServiceControlConnections() {
183183
return connections;
184184
}
185185

186-
watch(environment, (newValue, oldValue) => {
187-
if (newValue.is_compatible_with_sc !== oldValue.is_compatible_with_sc) {
188-
if (!newValue.is_compatible_with_sc) {
189-
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.`);
190-
}
191-
}
186+
watch(() => environment.is_compatible_with_sc, (newValue) => {
187+
if (newValue == false) {
188+
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.`);
189+
}
192190
});
193191

194192
async function getServiceControlVersion() {

0 commit comments

Comments
 (0)