diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 99d8fcf77f..2be61ebfe9 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -63,6 +63,7 @@ import { VersionComponent } from './general/metadata/version/version.component'; import { NavBarMenuComponent } from './general/nav-bar-menu/nav-bar-menu.component'; import { NoticeComponent } from './general/notice/notice.component'; import { ConfirmationDialogComponent } from './helpers/confirmation-dialog/confirmation-dialog.component'; +import { DefaultValuePipe } from './helpers/default-value.pipe'; import { DisplayValueComponent } from './helpers/display-value/display-value.component'; import { InputDialogComponent } from './helpers/input-dialog/input-dialog.component'; import { MatIconComponent } from './helpers/mat-icon/mat-icon.component'; @@ -109,6 +110,7 @@ import { WhitespaceUrlInterceptor } from './services/encoder/encoder.interceptor import { DeleteSessionDialogComponent } from './sessions/delete-session-dialog/delete-session-dialog.component'; import { FloatingWindowManagerComponent } from './sessions/session/floating-window-manager/floating-window-manager.component'; import { SessionComponent } from './sessions/session/session.component'; +import { TailingWindowManagerComponent } from './sessions/session/tailing-window-manager/tailing-window-manager.component'; import { SessionOverviewComponent } from './sessions/session-overview/session-overview.component'; import { SessionsComponent } from './sessions/sessions.component'; import { ActiveSessionsComponent } from './sessions/user-sessions-wrapper/active-sessions/active-sessions.component'; @@ -164,6 +166,7 @@ import { SettingsComponent } from './settings/settings.component'; CreateReadonlySessionComponent, CreateReadonlySessionDialogComponent, CreateT4cModelNewRepositoryComponent, + DefaultValuePipe, DeleteGitSettingsDialogComponent, DeleteSessionDialogComponent, DisplayValueComponent, @@ -221,6 +224,7 @@ import { SettingsComponent } from './settings/settings.component'; T4CRepoDeletionDialogComponent, T4CSettingsComponent, T4CSettingsWrapperComponent, + TailingWindowManagerComponent, TextLineSkeletonLoaderComponent, ToolDeletionDialogComponent, ToolDetailsComponent, diff --git a/frontend/src/app/helpers/default-value.pipe.ts b/frontend/src/app/helpers/default-value.pipe.ts new file mode 100644 index 0000000000..ab31513185 --- /dev/null +++ b/frontend/src/app/helpers/default-value.pipe.ts @@ -0,0 +1,15 @@ +/* + * SPDX-FileCopyrightText: Copyright DB Netz AG and the capella-collab-manager contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import { Pipe, PipeTransform } from '@angular/core'; + +@Pipe({ + name: 'defaultValue', +}) +export class DefaultValuePipe implements PipeTransform { + transform(value: string | undefined, defaultValue: string): string { + return value ?? defaultValue; + } +} diff --git a/frontend/src/app/sessions/session/floating-window-manager/floating-window-manager.component.html b/frontend/src/app/sessions/session/floating-window-manager/floating-window-manager.component.html index f82e079b10..336f59455a 100644 --- a/frontend/src/app/sessions/session/floating-window-manager/floating-window-manager.component.html +++ b/frontend/src/app/sessions/session/floating-window-manager/floating-window-manager.component.html @@ -48,6 +48,13 @@ >