import { NotificationService } from './../services/ui/notification.service';
import { CatalogDataSource } from './catalog.datasource';
import { XMDeployableApp } from '../interfaces/app-mgr.types';
+import { MatDialog } from '@angular/material/dialog';
+import { AppConfigurationComponent } from './../app-configuration/app-configuration.component';
@Component({
selector: 'rd-app-catalog',
constructor(
private appMgrService: AppMgrService,
private confirmDialogService: ConfirmDialogService,
+ private dialog: MatDialog,
private errorDiaglogService: ErrorDialogService,
private notificationService: NotificationService) { }
this.dataSource.loadTable();
}
- onConfigureApp(name: string): void {
- const aboutError = 'Configure not implemented (yet)';
- this.errorDiaglogService.displayError(aboutError);
+ onConfigureApp(xapp: XMDeployableApp): void {
+ const dialogRef = this.dialog.open(AppConfigurationComponent, {
+ width: '40%',
+ maxHeight:'500px',
+ position: {
+ top:'10%'
+ },
+ data: xapp
+ });
+
}
onDeployApp(app: XMDeployableApp): void {