Skip to content

Commit

Permalink
chore: activate the anomaly detection menu (#4383)
Browse files Browse the repository at this point in the history
Signed-off-by: sulmo <[email protected]>
  • Loading branch information
sulmoJ authored Jul 19, 2024
1 parent f89721f commit 10f8465
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ const state = reactive({
hideFavorite: true,
highlightTag: 'new',
},
// TODO: To be implemented after completion of the feature API
// {
// type: MENU_ITEM_TYPE.ITEM,
// label: i18n.t('IAM.DOMAIN_SETTINGS.ANOMALY_DETECTION_CONFIGURATION'),
// to: { name: makeAdminRouteName(PREFERENCE_ROUTE.DOMAIN_SETTINGS.ANOMALY_DETECTION_DOMAIN_CONFIGURATION._NAME) },
// hideFavorite: true,
// highlightTag: 'new',
// },
{
type: MENU_ITEM_TYPE.ITEM,
label: i18n.t('IAM.DOMAIN_SETTINGS.ANOMALY_DETECTION_CONFIGURATION'),
to: { name: makeAdminRouteName(PREFERENCE_ROUTE.DOMAIN_SETTINGS.ANOMALY_DETECTION_DOMAIN_CONFIGURATION._NAME) },
hideFavorite: true,
highlightTag: 'new',
},
]),
});
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ onMounted(async () => {
variation: rule.variations,
notifyLevel: rule.severity,
}));
if (!state.notificationRules.length) {
state.notificationRules = [{ variation: ['gte', 'lte'] }];
}
state.recipients = savedConfig.recipients?.role_type.includes('WORKSPACE_OWNER') ?? false;
}
});
Expand Down

0 comments on commit 10f8465

Please sign in to comment.