Skip to content

Commit

Permalink
Revert hide overview app
Browse files Browse the repository at this point in the history
Moved to  #41
  • Loading branch information
AlexRuiz7 committed Apr 20, 2023
1 parent 382d527 commit ebc6c7c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/plugins/opensearch_dashboards_overview/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,13 @@ export class OpenSearchDashboardsOverviewPlugin
return hasOpenSearchDashboardsApp;
}),
distinct(),
map(() => {
map((hasOpenSearchDashboardsApp) => {
return () => {
// Wazuh: Hide the OpenSearch Dashboards Overview app
// TODO (unknown reason: `Add your data` button ?? )
return {
status: AppStatus.inaccessible,
navLinkStatus: AppNavLinkStatus.hidden,
};
if (!hasOpenSearchDashboardsApp) {
return { status: AppStatus.inaccessible, navLinkStatus: AppNavLinkStatus.hidden };
} else {
return { status: AppStatus.accessible, navLinkStatus: AppNavLinkStatus.default };
}
};
})
);
Expand Down

0 comments on commit ebc6c7c

Please sign in to comment.