Skip to content
Snippets Groups Projects
Commit b3adc76e authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2709 OZG-3242 Move UserProfileInHeaderContainerComponent to user-profile lib

parent 7101b9ef
No related branches found
No related tags found
No related merge requests found
Showing
with 15 additions and 9 deletions
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { HeaderLogoComponent } from './header-logo.component';
describe('HeaderLogoComponent', () => {
......@@ -9,6 +9,9 @@ describe('HeaderLogoComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [HeaderLogoComponent],
imports: [
RouterTestingModule
]
}).compileComponents();
fixture = TestBed.createComponent(HeaderLogoComponent);
......
......@@ -24,12 +24,12 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { UiModule } from '@goofy-client/ui';
import { UserIconComponent } from '@goofy-client/user-profile';
import { UserIconComponent, UserProfileInHeaderContainerComponent } from '@goofy-client/user-profile';
import { UserSettingsContainerComponent } from '@goofy-client/user-settings';
import { VorgangSearchContainerComponent } from '@goofy-client/vorgang-shared-ui';
import { MockComponent } from 'ng-mocks';
import { HeaderLogoComponent } from './header-logo/header-logo.component';
import { HeaderComponent } from './header.component';
import { UserProfileInHeaderContainerComponent } from './user-profile-in-header-container/user-profile-in-header-container.component';
describe('HeaderComponent', () => {
let component: HeaderComponent;
......@@ -43,6 +43,7 @@ describe('HeaderComponent', () => {
],
declarations: [
HeaderComponent,
MockComponent(HeaderLogoComponent),
MockComponent(VorgangSearchContainerComponent),
MockComponent(UserIconComponent),
MockComponent(UserProfileInHeaderContainerComponent),
......
......@@ -30,14 +30,12 @@ import { UserSettingsModule } from '@goofy-client/user-settings';
import { VorgangSharedUiModule } from '@goofy-client/vorgang-shared-ui';
import { BuildInfoComponent } from './build-info/build-info.component';
import { HeaderContainerComponent } from './header-container/header-container.component';
import { HeaderLogoComponent } from './header-container/header/header-logo/header-logo.component';
import { HeaderComponent } from './header-container/header/header.component';
import { NavigationContainerComponent } from './navigation-container/navigation-container.component';
import { AllVorgaengeNavigationItemComponent } from './navigation/all-vorgaenge-navigation-item/all-vorgaenge-navigation-item.component';
import { MyVorgaengeNavigationItemComponent } from './navigation/my-vorgaenge-navigation-item/my-vorgaenge-navigation-item.component';
import { NavigationComponent } from './navigation/navigation.component';
import { UserProfileInHeaderContainerComponent } from './header-container/header/user-profile-in-header-container/user-profile-in-header-container.component';
import { UserProfileInHeaderComponent } from './header-container/header/user-profile-in-header-container/user-profile-in-header/user-profile-in-header.component';
import { HeaderLogoComponent } from './header-container/header/header-logo/header-logo.component';
@NgModule({
declarations: [
......@@ -48,8 +46,6 @@ import { HeaderLogoComponent } from './header-container/header/header-logo/heade
AllVorgaengeNavigationItemComponent,
MyVorgaengeNavigationItemComponent,
NavigationContainerComponent,
UserProfileInHeaderContainerComponent,
UserProfileInHeaderComponent,
HeaderLogoComponent,
],
imports: [
......
......@@ -25,9 +25,11 @@ export * from './lib/assign-user-profile-button-container/assign-user-profile-bu
export * from './lib/link-with-user-name-tooltip-container/link-with-user-name-tooltip-container.component';
export * from './lib/text-with-user-name-tooltip-container/text-with-user-name-tooltip-container.component';
export * from './lib/user-icon/user-icon.component';
export * from './lib/user-profile-in-header-container/user-profile-in-header-container.component';
export * from './lib/user-profile-in-historie-container/user-profile-in-historie-container.component';
export * from './lib/user-profile-in-kommentar-container/user-profile-in-kommentar-container.component';
export * from './lib/user-profile-in-postfach-mail-container/user-profile-in-postfach-mail-container.component';
export * from './lib/user-profile-in-vorgang-container/user-profile-in-vorgang-container.component';
export * from './lib/user-profile-in-vorgang-list-item-container/user-profile-in-vorgang-list-item-container.component';
export * from './lib/user-profile.module';
......@@ -30,7 +30,6 @@ import { OAuthService } from 'angular-oauth2-oidc';
import { Observable, of } from 'rxjs';
import { switchMap } from 'rxjs/operators';
//TODO in user-profile lib verschieben
@Component({
selector: 'goofy-client-user-profile-in-header-container',
templateUrl: './user-profile-in-header-container.component.html',
......
......@@ -33,6 +33,8 @@ import { LinkWithUserNameTooltipComponent } from './link-with-user-name-tooltip-
import { TextWithUserNameTooltipContainerComponent } from './text-with-user-name-tooltip-container/text-with-user-name-tooltip-container.component';
import { TextWithUserNameTooltipComponent } from './text-with-user-name-tooltip-container/text-with-user-name-tooltip/text-with-user-name-tooltip.component';
import { UserIconComponent } from './user-icon/user-icon.component';
import { UserProfileInHeaderContainerComponent } from './user-profile-in-header-container/user-profile-in-header-container.component';
import { UserProfileInHeaderComponent } from './user-profile-in-header-container/user-profile-in-header/user-profile-in-header.component';
import { UserProfileInHistorieContainerComponent } from './user-profile-in-historie-container/user-profile-in-historie-container.component';
import { UserProfileInKommentarContainerComponent } from './user-profile-in-kommentar-container/user-profile-in-kommentar-container.component';
import { UserProfileInPostfachMailContainerComponent } from './user-profile-in-postfach-mail-container/user-profile-in-postfach-mail-container.component';
......@@ -71,6 +73,8 @@ import { UserProfileComponent } from './user-profile/user-profile.component';
TextWithUserNameTooltipComponent,
UserProfileInHistorieContainerComponent,
UserProfileNameComponent,
UserProfileInHeaderContainerComponent,
UserProfileInHeaderComponent,
],
exports: [
UserProfileInVorgangContainerComponent,
......@@ -82,6 +86,7 @@ import { UserProfileComponent } from './user-profile/user-profile.component';
LinkWithUserNameTooltipContainerComponent,
TextWithUserNameTooltipContainerComponent,
UserProfileInHistorieContainerComponent,
UserProfileInHeaderContainerComponent,
],
})
export class UserProfileModule { }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment