issue-6 #8
@ -4,11 +4,13 @@ import {AppComponent} from "./app.component";
|
|||||||
import {AdminDashboardComponent} from "./admin-dashboard/admin-dashboard.component";
|
import {AdminDashboardComponent} from "./admin-dashboard/admin-dashboard.component";
|
||||||
import {MainComponent} from "./main/main.component";
|
import {MainComponent} from "./main/main.component";
|
||||||
import {UserSettingsComponent} from "./user-settings/user-settings.component";
|
import {UserSettingsComponent} from "./user-settings/user-settings.component";
|
||||||
|
import {TaskgroupDashboardComponent} from "./taskgroups/taskgroup-dashboard/taskgroup-dashboard.component";
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{path: '', component: MainComponent},
|
{path: '', component: MainComponent},
|
||||||
{path: 'admin', component: AdminDashboardComponent},
|
{path: 'admin', component: AdminDashboardComponent},
|
||||||
{path: 'user/settings', component: UserSettingsComponent}
|
{path: 'user/settings', component: UserSettingsComponent},
|
||||||
|
{path: 'taskgroups', component: TaskgroupDashboardComponent}
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
<mat-toolbar color="primary">
|
<mat-toolbar color="primary">
|
||||||
<span>Spring Angular Demo</span>
|
<span>TimeManager</span>
|
||||||
|
|
||||||
|
<button mat-button aria-label="Organize" *ngIf="authService.hasKey" [matMenuTriggerFor]="organizeMenu">Organize ▾</button>
|
||||||
|
<mat-menu #organizeMenu=matMenu>
|
||||||
|
<button mat-menu-item routerLink="taskgroups/" aria-label="Task groups">Taskgroups</button>
|
||||||
|
</mat-menu>
|
||||||
<span class="example-spacer"></span>
|
<span class="example-spacer"></span>
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ import { DeleteAccountComponent } from './user-settings/account-settings/delete-
|
|||||||
import { RegistrationComponent } from './auth/registration/registration.component';
|
import { RegistrationComponent } from './auth/registration/registration.component';
|
||||||
import { SettingsComponent } from './admin-dashboard/settings/settings.component';
|
import { SettingsComponent } from './admin-dashboard/settings/settings.component';
|
||||||
import {MatListModule} from "@angular/material/list";
|
import {MatListModule} from "@angular/material/list";
|
||||||
|
import { TaskgroupDashboardComponent } from './taskgroups/taskgroup-dashboard/taskgroup-dashboard.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -52,7 +53,8 @@ import {MatListModule} from "@angular/material/list";
|
|||||||
ManageEmailComponent,
|
ManageEmailComponent,
|
||||||
DeleteAccountComponent,
|
DeleteAccountComponent,
|
||||||
RegistrationComponent,
|
RegistrationComponent,
|
||||||
SettingsComponent
|
SettingsComponent,
|
||||||
|
TaskgroupDashboardComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
<p>taskgroup-dashboard works!</p>
|
@ -0,0 +1,25 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { TaskgroupDashboardComponent } from './taskgroup-dashboard.component';
|
||||||
|
|
||||||
|
describe('TaskgroupDashboardComponent', () => {
|
||||||
|
let component: TaskgroupDashboardComponent;
|
||||||
|
let fixture: ComponentFixture<TaskgroupDashboardComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ TaskgroupDashboardComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(TaskgroupDashboardComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-taskgroup-dashboard',
|
||||||
|
templateUrl: './taskgroup-dashboard.component.html',
|
||||||
|
styleUrls: ['./taskgroup-dashboard.component.css']
|
||||||
|
})
|
||||||
|
export class TaskgroupDashboardComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user