Skip to content

Commit

Permalink
feat: change routing for settings (#799)
Browse files Browse the repository at this point in the history
* feat: change routing for settings

* refactor: routing settings

* refactor: remove old ui-stuff related to settings

---------

Co-authored-by: Stephan Girod <[email protected]>
  • Loading branch information
BeriBoss and StephGit authored Nov 19, 2024
1 parent caf3d22 commit 4bddb3e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 580 deletions.
2 changes: 1 addition & 1 deletion AMW_angular/io/src/app/navigation/navigation.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { NgbCollapse } from '@ng-bootstrap/ng-bootstrap';
<a class="nav-link" href="#/deployments/">Deploy</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/AMW_web/pages/settings.xhtml">Settings</a>
<a class="nav-link" href="#/settings">Settings</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ logoutUrl }}">Logout</a>
Expand Down
5 changes: 2 additions & 3 deletions AMW_angular/io/src/app/settings/settings.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { RouterTestingModule } from '@angular/router/testing';
import { SettingsComponent } from './settings.component';
import { HttpTestingController, provideHttpClientTesting } from '@angular/common/http/testing';
import { HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { provideHttpClientTesting } from '@angular/common/http/testing';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';

describe('SettingsComponent', () => {
let component: SettingsComponent;
Expand Down
1 change: 1 addition & 0 deletions AMW_angular/io/src/app/settings/settings.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const settingsRoutes = [
component: SettingsComponent,
title: 'Settings',
children: [
{ path: '', component: EnvironmentsPageComponent },
{ path: 'releases', component: ReleasesComponent },
{ title: 'Settings - Tags', path: 'tags', component: TagsComponent },
{
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4bddb3e

Please sign in to comment.