-
-
-
-
-
-
-
-
- error_outline
-
-
- warning
-
+
+ @switch (data.notificationType) { @case (NotificationTypes.SUCCESS) {
+
+ } @case (NotificationTypes.INFO) {
+
+ } @case (NotificationTypes.ERROR) {
+ error_outline
+ } @case (NotificationTypes.WARNING) {
+ warning
+ } }
diff --git a/frontend/src/app/modules/shared/components/ms-banner/ms-banner.component.ts b/frontend/src/app/modules/shared/components/ms-banner/ms-banner.component.ts
index 1088eef6..f2067283 100644
--- a/frontend/src/app/modules/shared/components/ms-banner/ms-banner.component.ts
+++ b/frontend/src/app/modules/shared/components/ms-banner/ms-banner.component.ts
@@ -14,7 +14,6 @@
// SPDX-License-Identifier: Apache-2.0
-import { CommonModule } from '@angular/common';
import { Component, Inject } from '@angular/core';
import { MatIconModule } from '@angular/material/icon';
import { MAT_SNACK_BAR_DATA, MatSnackBarRef } from '@angular/material/snack-bar';
@@ -25,7 +24,7 @@ import { NotificationTypes } from './models/snackbar-types.enum';
templateUrl: './ms-banner.component.html',
styleUrls: ['./ms-banner.component.scss'],
standalone: true,
- imports: [CommonModule, MatIconModule]
+ imports: [MatIconModule]
})
export class MsBannerComponent {
readonly NotificationTypes: typeof NotificationTypes = NotificationTypes;
diff --git a/frontend/src/app/modules/shared/components/ms-card-selector/ms-card-selector.component.html b/frontend/src/app/modules/shared/components/ms-card-selector/ms-card-selector.component.html
index b5e91560..bc5ef0cb 100644
--- a/frontend/src/app/modules/shared/components/ms-card-selector/ms-card-selector.component.html
+++ b/frontend/src/app/modules/shared/components/ms-card-selector/ms-card-selector.component.html
@@ -1,25 +1,23 @@
+SPDX-License-Identifier: Apache-2.0 -->
-
+ @for (option of options; track option) {
+
{{ option }}
+ }
diff --git a/frontend/src/app/modules/shared/components/ms-card-selector/ms-card-selector.component.ts b/frontend/src/app/modules/shared/components/ms-card-selector/ms-card-selector.component.ts
index dd40afcb..11547cf1 100644
--- a/frontend/src/app/modules/shared/components/ms-card-selector/ms-card-selector.component.ts
+++ b/frontend/src/app/modules/shared/components/ms-card-selector/ms-card-selector.component.ts
@@ -14,7 +14,6 @@
// SPDX-License-Identifier: Apache-2.0
-import { NgFor } from '@angular/common';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { MatCardModule } from '@angular/material/card';
@@ -23,7 +22,7 @@ import { MatCardModule } from '@angular/material/card';
templateUrl: './ms-card-selector.component.html',
styleUrls: ['./ms-card-selector.component.scss'],
standalone: true,
- imports: [NgFor, MatCardModule]
+ imports: [MatCardModule]
})
export class MsCardSelectorComponent {
@Input() options: string[] = [];
@@ -35,8 +34,4 @@ export class MsCardSelectorComponent {
this.activeCard = this.activeCard === option ? null : option;
this.selectedOption.emit(this.activeCard);
}
-
- trackByOption(_: number, option: string): string {
- return option;
- }
}
diff --git a/frontend/src/app/modules/shared/components/ms-drawer/component/ms-drawer.component.html b/frontend/src/app/modules/shared/components/ms-drawer/component/ms-drawer.component.html
index 996e64b9..cd31896d 100644
--- a/frontend/src/app/modules/shared/components/ms-drawer/component/ms-drawer.component.html
+++ b/frontend/src/app/modules/shared/components/ms-drawer/component/ms-drawer.component.html
@@ -1,19 +1,19 @@
+SPDX-License-Identifier: Apache-2.0
+-->
diff --git a/frontend/src/app/modules/shared/components/ms-file-upload/ms-file-upload.component.html b/frontend/src/app/modules/shared/components/ms-file-upload/ms-file-upload.component.html
index cb3db0fa..6959752d 100644
--- a/frontend/src/app/modules/shared/components/ms-file-upload/ms-file-upload.component.html
+++ b/frontend/src/app/modules/shared/components/ms-file-upload/ms-file-upload.component.html
@@ -1,18 +1,18 @@
+SPDX-License-Identifier: Apache-2.0 -->
-
-
-
- Uploaded: {{ uploadedFileName }}
-
-
+ @if (uploadedFileName) {
+
+
+ Uploaded: {{ uploadedFileName }}
+
+
+
+ } @else {
+
+
+
+
+ Drag & Drop your file here or browse to select.
-
-
-
-
-
-
-
- Drag & Drop your file here or browse to select.
-
-
-
+
+ }
diff --git a/frontend/src/app/modules/shared/components/ms-file-upload/ms-file-upload.component.ts b/frontend/src/app/modules/shared/components/ms-file-upload/ms-file-upload.component.ts
index c042049e..714ad964 100644
--- a/frontend/src/app/modules/shared/components/ms-file-upload/ms-file-upload.component.ts
+++ b/frontend/src/app/modules/shared/components/ms-file-upload/ms-file-upload.component.ts
@@ -15,6 +15,7 @@
// SPDX-License-Identifier: Apache-2.0
import { Component, ElementRef, ViewChild } from '@angular/core';
+import { MatIconModule } from '@angular/material/icon';
import { FileService } from '../../../core/services/file.service';
import { BannerService } from '../ms-banner/services/banner.service';
@@ -22,7 +23,8 @@ import { BannerService } from '../ms-banner/services/banner.service';
selector: 'ms-file-upload',
templateUrl: './ms-file-upload.component.html',
styleUrls: ['./ms-file-upload.component.scss'],
- standalone: true
+ standalone: true,
+ imports: [MatIconModule]
})
export class MsFileUploadComponent {
uploadedFileName: string | null = null;
diff --git a/frontend/src/app/modules/shared/components/ms-footer/ms-footer.component.html b/frontend/src/app/modules/shared/components/ms-footer/ms-footer.component.html
index cc105aa4..b50b1675 100644
--- a/frontend/src/app/modules/shared/components/ms-footer/ms-footer.component.html
+++ b/frontend/src/app/modules/shared/components/ms-footer/ms-footer.component.html
@@ -1,18 +1,18 @@
+SPDX-License-Identifier: Apache-2.0 -->
diff --git a/frontend/src/app/modules/shared/components/ms-panel-model-training/ms-panel-model-training.component.html b/frontend/src/app/modules/shared/components/ms-panel-model-training/ms-panel-model-training.component.html
index e82552ba..a210dc96 100644
--- a/frontend/src/app/modules/shared/components/ms-panel-model-training/ms-panel-model-training.component.html
+++ b/frontend/src/app/modules/shared/components/ms-panel-model-training/ms-panel-model-training.component.html
@@ -1,18 +1,18 @@
+SPDX-License-Identifier: Apache-2.0 -->
@@ -27,13 +27,16 @@
-
-
- {{ model.name }}
-
-
- No results found
-
+ @if (filteredModels | async; as models) { @for (model of models; track model.name) {
+
+ {{ model.name }}
+ @if (!model.isTrained) {
+
+ }
+
+ } @if (models.length === 0) {
+
No results found
+ } }
diff --git a/frontend/src/app/modules/shared/components/ms-panel-model-training/ms-panel-model-training.component.ts b/frontend/src/app/modules/shared/components/ms-panel-model-training/ms-panel-model-training.component.ts
index da514062..b89e70e5 100644
--- a/frontend/src/app/modules/shared/components/ms-panel-model-training/ms-panel-model-training.component.ts
+++ b/frontend/src/app/modules/shared/components/ms-panel-model-training/ms-panel-model-training.component.ts
@@ -211,10 +211,6 @@ export class MsPanelModelTrainingComponent implements OnInit, OnChanges, OnDestr
return this.models.filter((model) => model.name.toLowerCase().includes(filterValue));
}
- trackByModel(_: number, model: ModelDto): any {
- return model.name;
- }
-
ngOnDestroy() {
this.parentFormGroup.removeControl(this.controlKey);
}
diff --git a/frontend/src/app/modules/shared/components/ms-panel-model/ms-panel-model.component.html b/frontend/src/app/modules/shared/components/ms-panel-model/ms-panel-model.component.html
index 07605841..90211a12 100644
--- a/frontend/src/app/modules/shared/components/ms-panel-model/ms-panel-model.component.html
+++ b/frontend/src/app/modules/shared/components/ms-panel-model/ms-panel-model.component.html
@@ -1,32 +1,31 @@
+SPDX-License-Identifier: Apache-2.0 -->
Model
-
+ @if (isTrainModelsPageRouteVisible) {
+
Train models
-
-
-
-
-
-
+ @if (pageRunningScriptSpiningIndicatorService.currentRunningPage$ | async; as currentRunningPageKey) { @if
+ (currentRunningPageKey === PageKey.MODEL_TRAINING) {
+
+ } }
+ }