X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bmy-account%2Fmy-account-routing.module.ts;h=b39b1f6b4a8ea544460926ec1ed31bf95c1aaf7e;hb=77448fd31c140d87bd8fc60b83f94e5eba2ab682;hp=226a4a7be14c7d97bfcb3f08e1e62efed17a54ad;hpb=afff310e50f2fa8419bb4242470cbde46ab54463;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+my-account/my-account-routing.module.ts b/client/src/app/+my-account/my-account-routing.module.ts index 226a4a7be..b39b1f6b4 100644 --- a/client/src/app/+my-account/my-account-routing.module.ts +++ b/client/src/app/+my-account/my-account-routing.module.ts @@ -1,20 +1,20 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' -import { MetaGuard } from '@ngx-meta/core' import { LoginGuard } from '../core' import { MyAccountAbusesListComponent } from './my-account-abuses/my-account-abuses-list.component' +import { MyAccountApplicationsComponent } from './my-account-applications/my-account-applications.component' import { MyAccountBlocklistComponent } from './my-account-blocklist/my-account-blocklist.component' import { MyAccountServerBlocklistComponent } from './my-account-blocklist/my-account-server-blocklist.component' import { MyAccountNotificationsComponent } from './my-account-notifications/my-account-notifications.component' import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' +import { MyAccountTwoFactorComponent } from './my-account-settings/my-account-two-factor' import { MyAccountComponent } from './my-account.component' -import { MyAccountApplicationsComponent } from './my-account-applications/my-account-applications.component' const myAccountRoutes: Routes = [ { path: '', component: MyAccountComponent, - canActivateChild: [ MetaGuard, LoginGuard ], + canActivateChild: [ LoginGuard ], children: [ { path: '', @@ -31,6 +31,16 @@ const myAccountRoutes: Routes = [ } }, + { + path: 'two-factor-auth', + component: MyAccountTwoFactorComponent, + data: { + meta: { + title: $localize`Two factor authentication` + } + } + }, + { path: 'video-channels', redirectTo: '/my-library/video-channels', @@ -124,7 +134,7 @@ const myAccountRoutes: Routes = [ component: MyAccountApplicationsComponent, data: { meta: { - title: 'Applications' + title: $localize`Applications` } } }