mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 08:09:24 +00:00
fix(alerts): guard Import Semantic Groups route on OSS builds (#14364)
This commit is contained in:
@@ -923,6 +923,7 @@ const useRoutes = () => {
|
||||
},
|
||||
},
|
||||
{
|
||||
// Correlation engine is enterprise/cloud-only: bounce to Alerts on OSS — mirrors anomaly/alert-sources guards.
|
||||
path: "alerts/import-semantic-groups",
|
||||
name: "importSemanticGroups",
|
||||
component: () => import("@/components/alerts/ImportSemanticGroups.vue"),
|
||||
@@ -930,6 +931,12 @@ const useRoutes = () => {
|
||||
titleKey: "correlation.importSemanticGroups.title",
|
||||
},
|
||||
beforeEnter(to: any, from: any, next: any) {
|
||||
const store = (window as any).store;
|
||||
const isOss = store?.state?.zoConfig?.build_type === "opensource";
|
||||
if (isOss || (config.isEnterprise !== "true" && config.isCloud !== "true")) {
|
||||
next({ name: "alertList", query: { org_identifier: to.query.org_identifier } });
|
||||
return;
|
||||
}
|
||||
routeGuard(to, from, next);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user