Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions frontend/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ import { setupGuard } from './guards/setup.guard';

const routes: Routes = [
{ path: '', redirectTo: '/connections-list', pathMatch: 'full' },
{
path: 'registration',
loadChildren: () => import('./routes/registration.routes').then((m) => m.REGISTRATION_ROUTES),
canActivate: [noAuthGuard],
},
{
path: 'setup',
loadComponent: () => import('./components/setup/setup.component').then((m) => m.SetupComponent),
Expand Down
10 changes: 0 additions & 10 deletions frontend/src/app/app.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,6 @@
gap: 20px;
}

.actions .action {
--mat-button-outlined-outline-color: #fff;
--mat-toolbar-container-text-color: #fff;
width: 96px;
}

.actions .action {
margin-left: 0.5em;
}

@media screen and (max-width: 600px) {
.menu,
.actions_auth {
Expand Down
41 changes: 0 additions & 41 deletions frontend/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,6 @@
Upgrade
</a>

<button type="button" *ngIf="isSaas && currentUser && currentUser.role === 'ADMIN' && isDemo"
mat-flat-button color="accent"
data-testid="upgrade-header-link"
class="nav-bar__upgrade-button"
angulartics2On="click"
angularticsAction="Demo navbar: Create account is clicked"
(click)="logoutAndRedirectToRegistration(); posthog.capture('Demo navbar: Create account is clicked')">
Create account
</button>

<button mat-icon-button type="button" data-testid="account-menu-anchor-header-button"
matBadge="1" [matBadgeHidden]="currentUser.isActive"
matBadgeColor="accent" matBadgeSize="small"
Expand Down Expand Up @@ -231,37 +221,6 @@
</button>
</mat-menu>
</div>

<div *ngIf="!currentUser" class="actions">
<ng-container *ngIf="page === '/login'">
<a mat-stroked-button routerLink="/login"
data-testid="login-header-link"
class="action">
Login
</a>
<a *ngIf="isSaas" mat-flat-button color="accent" routerLink="/registration"
data-testid="registration-header-link"
class="action">
Sign up
</a>
</ng-container>
<ng-container *ngIf="page === '/registration' && isSaas">
<a mat-flat-button color="accent" routerLink="/login"
data-testid="login-header-link"
class="action">
Login
</a>
<a mat-stroked-button routerLink="/registration"
data-testid="registration-header-link"
class="action">
Sign up
</a>
</ng-container>

</div>
<!-- <ng-template #nonAuthBlock>

</ng-template> -->
</mat-toolbar>

<mat-tab-nav-panel #tabPanel class="tab-content-wrapper">
Expand Down
12 changes: 0 additions & 12 deletions frontend/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,18 +359,6 @@ export class AppComponent {
this.changeDetector.detectChanges();
}

logoutAndRedirectToRegistration() {
this._auth.logOutUser().subscribe(() => {
this.setUserLoggedIn(false);
this.isDemo = false;
this._user.setIsDemo(false);
this.currentUser = null;
localStorage.removeItem('token_expiration');
this._auth.setAuthenticated(false);
this.router.navigate(['/registration']);
});
}

logOut(isTokenExpired?: boolean) {
try {
// @ts-expect-error
Expand Down
213 changes: 0 additions & 213 deletions frontend/src/app/components/registration/registration.component.css

This file was deleted.

This file was deleted.

Loading
Loading