diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 1a1c8afa..d08cd01f 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -16,6 +16,7 @@ import { ProjectNewComponent } from './projects/components/project-new/project-n import { ProjectAddComponent } from './projects/components/project-add/project-add.component'; import { RecordIDEComponent } from './record-ide/components/record-ide.component'; import { ConfigComponent } from './config/components/config.component'; +import { ModelDownloadComponent } from './model-download/pages/model-download/model-download.component'; const routes: Routes = [ { @@ -27,6 +28,7 @@ const routes: Routes = [ { path: 'notification-center', component: NotificationCenterComponent, data: { name: 'NotificationCenterComponent' } }, { path: 'projects/new', component: ProjectNewComponent, data: { name: 'ProjectNewComponent' } }, { path: 'config', component: ConfigComponent, data: { name: 'ConfigComponent' } }, + { path: 'projects/:projectId', component: ProjectComponent, @@ -54,6 +56,7 @@ const routes: Routes = [ path: 'knowledge-base/:knowledgeBaseId', component: KnowledgeBaseDetailsComponent, data: { name: 'KnowledgeBaseDetailsComponent' } }, + { path: 'model-download', component: ModelDownloadComponent, data: { name: 'ModelDownloadComponent' } }, { path: '**', component: ProjectOverviewComponent, data: { name: 'ProjectOverviewComponent' } }, //TODO: redirecting to projects overview page and errors ], diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 55b29450..6210fb43 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -22,6 +22,7 @@ import { ConfigModule } from './config/config.module' import { IntercomModule } from 'ng-intercom'; import { NotificationCenterModule } from './notification-center/notification-center.module'; import { RecordIDEModule } from './record-ide/record-ide.module'; +import { ModelDownloadModule } from './model-download/model-download.module'; @NgModule({ declarations: [AppComponent], @@ -40,6 +41,7 @@ import { RecordIDEModule } from './record-ide/record-ide.module'; ZeroShotModule, LabelingModule, RecordIDEModule, + ModelDownloadModule, NotificationCenterModule, MonacoEditorModule.forRoot(), KnowledgeBasesModule, diff --git a/src/app/base/components/dropdown/dropdown-helper.ts b/src/app/base/components/dropdown/dropdown-helper.ts index fb596128..589e5856 100644 --- a/src/app/base/components/dropdown/dropdown-helper.ts +++ b/src/app/base/components/dropdown/dropdown-helper.ts @@ -23,6 +23,7 @@ import { FormArray } from "@angular/forms"; * @textHoverColor {string, optional} - text color on hover for the dropdown options * @textSize {string, optional} - text size for the dropdown options * @isButtonSampleProjects {boolean, optional} - checks if the button is the specific one for sample project + * @isModelDownloaded {boolean[], optional} - checks if the model is downloaded and if so the color of the text is green */ export type DropdownOptions = { optionArray: string[] | FormArray[] | any[]; @@ -46,5 +47,6 @@ export type DropdownOptions = { textHoverColor?: string; textSize?: string; isButtonSampleProjects?: boolean; + isModelDownloaded: boolean[]; }; diff --git a/src/app/base/components/dropdown/dropdown.component.html b/src/app/base/components/dropdown/dropdown.component.html index 6731f163..9d8f05b6 100644 --- a/src/app/base/components/dropdown/dropdown.component.html +++ b/src/app/base/components/dropdown/dropdown.component.html @@ -1,5 +1,6 @@
- - - + + -
+