Skip to content

Commit

Permalink
Provide toast as layoutModule entryComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
DailisLangovskis committed Mar 8, 2021
1 parent 38afd65 commit fc1a961
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
10 changes: 8 additions & 2 deletions components/layout/layout.module.ts
@@ -1,6 +1,10 @@
import {BootstrapComponent} from '../../bootstrap.component';
import {CUSTOM_ELEMENTS_SCHEMA, NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';

import {BootstrapComponent} from '../../bootstrap.component';

import {TranslateModule} from '@ngx-translate/core';

import {HsCompositionsModule} from '../compositions/compositions.module';
import {HsConfirmModule} from './../../common/confirm/confirm.module';
import {HsDatasourcesModule} from '../datasource-selector/datasource-selector.module';
Expand Down Expand Up @@ -28,10 +32,11 @@ import {HsSearchModule} from '../search/search.module';
import {HsShareModule} from '../permalink/share.module';
import {HsSidebarModule} from '../sidebar/sidebar.module';
import {HsStylerModule} from '../styles/styles.module';
import {HsToastComponent} from './toast/toast.component';
import {HsToastModule} from './toast/toast.module';
import {HsToolbarModule} from '../toolbar/toolbar.module';
import {HsTripPlannerModule} from '../trip_planner/trip-planner.module';
import {TranslateModule} from '@ngx-translate/core';

@NgModule({
declarations: [
BootstrapComponent,
Expand Down Expand Up @@ -74,6 +79,7 @@ import {TranslateModule} from '@ngx-translate/core';
BootstrapComponent,
HsDialogContainerComponent,
HsLayoutComponent,
HsToastComponent,
],
exports: [BootstrapComponent, HsDialogContainerComponent, HsLayoutComponent],
})
Expand Down
2 changes: 1 addition & 1 deletion components/layout/toast/toast.component.ts
Expand Up @@ -18,4 +18,4 @@ import {HsToastService} from './toast.service';
})
export class HsToastComponent {
constructor(public PmToastService: HsToastService) {}
}
}
8 changes: 6 additions & 2 deletions components/layout/toast/toast.module.ts
Expand Up @@ -4,13 +4,17 @@ import {
NgModule,
} from '@angular/core';
import {CommonModule} from '@angular/common';
import {HsToastComponent} from './toast.component';

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';

import {HsToastComponent} from './toast.component';
import {HsToastService} from './toast.service';

@NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
declarations: [HsToastComponent],
imports: [CommonModule, NgbModule],
exports: [HsToastComponent],
providers: [HsToastService],
})
export class HsToastModule {}
export class HsToastModule {}

0 comments on commit fc1a961

Please sign in to comment.