1a02b845b8
Updates will be observed from site component (Makes pure projectors ignore updates, unless the user navigates manually) Updates can now be delayed using the "noInterruption" route data. If the "noInterruption" route data was set, updates notifications will not be shown in this view. The update notification will appear, after the user navigates to a view without "noInterruption" flag.
40 lines
1.7 KiB
TypeScript
40 lines
1.7 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { LoginWrapperComponent } from './site/login/components/login-wrapper/login-wrapper.component';
|
|
import { LoginMaskComponent } from './site/login/components/login-mask/login-mask.component';
|
|
import { LoginLegalNoticeComponent } from './site/login/components/login-legal-notice/login-legal-notice.component';
|
|
import { LoginPrivacyPolicyComponent } from './site/login/components/login-privacy-policy/login-privacy-policy.component';
|
|
import { ResetPasswordComponent } from './site/login/components/reset-password/reset-password.component';
|
|
import { ResetPasswordConfirmComponent } from './site/login/components/reset-password-confirm/reset-password-confirm.component';
|
|
|
|
/**
|
|
* Global app routing
|
|
*/
|
|
const routes: Routes = [
|
|
{
|
|
path: 'login',
|
|
component: LoginWrapperComponent,
|
|
children: [
|
|
{ path: '', component: LoginMaskComponent, pathMatch: 'full' },
|
|
{ path: 'reset-password', component: ResetPasswordComponent },
|
|
{ path: 'reset-password-confirm', component: ResetPasswordConfirmComponent },
|
|
{ path: 'legalnotice', component: LoginLegalNoticeComponent },
|
|
{ path: 'privacypolicy', component: LoginPrivacyPolicyComponent }
|
|
]
|
|
},
|
|
{
|
|
path: 'projector',
|
|
loadChildren: './fullscreen-projector/fullscreen-projector.module#FullscreenProjectorModule',
|
|
data: { noInterruption: true }
|
|
},
|
|
{ path: '', loadChildren: './site/site.module#SiteModule' },
|
|
{ path: '**', redirectTo: '' }
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes, { onSameUrlNavigation: 'reload' })],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule {}
|