mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-24 14:31:16 +00:00
[ACS-8484] Add feature flag to knowledge retrieval (#4003)
This commit is contained in:
committed by
Aleksander Sklorz
parent
a577285cd9
commit
c45e4501d1
@@ -27,7 +27,7 @@ import { LibrariesComponent } from './components/libraries/libraries.component';
|
||||
import { FavoriteLibrariesComponent } from './components/favorite-libraries/favorite-libraries.component';
|
||||
import { SearchResultsComponent } from './components/search/search-results/search-results.component';
|
||||
import { SearchLibrariesResultsComponent } from './components/search/search-libraries-results/search-libraries-results.component';
|
||||
import { AppSharedRuleGuard, GenericErrorComponent, ExtensionRoute, ExtensionsDataLoaderGuard } from '@alfresco/aca-shared';
|
||||
import { AppSharedRuleGuard, GenericErrorComponent, ExtensionRoute, ExtensionsDataLoaderGuard, PluginEnabledGuard } from '@alfresco/aca-shared';
|
||||
import { AuthGuard } from '@alfresco/adf-core';
|
||||
import { FavoritesComponent } from './components/favorites/favorites.component';
|
||||
import { RecentFilesComponent } from './components/recent-files/recent-files.component';
|
||||
@@ -510,7 +510,11 @@ export const CONTENT_LAYOUT_ROUTES: Route = {
|
||||
},
|
||||
{
|
||||
path: 'knowledge-retrieval',
|
||||
component: SearchAiResultsComponent
|
||||
component: SearchAiResultsComponent,
|
||||
canActivate: [PluginEnabledGuard],
|
||||
data: {
|
||||
plugin: 'plugins.knowledgeRetrievalEnabled'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
|
@@ -53,18 +53,14 @@ describe('SearchAiInputContainerComponent', () => {
|
||||
provide: AgentService,
|
||||
useValue: {
|
||||
getAgents: () =>
|
||||
of({
|
||||
list: {
|
||||
entries: [
|
||||
{
|
||||
entry: {
|
||||
id: '1',
|
||||
name: 'HR Agent'
|
||||
}
|
||||
}
|
||||
]
|
||||
of([
|
||||
{
|
||||
id: '1',
|
||||
name: 'HR Agent',
|
||||
description: 'HR Agent',
|
||||
avatar: 'avatar1'
|
||||
}
|
||||
})
|
||||
])
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user