From 408fa03f38b3e8c5d177229f1de67a42d455491a Mon Sep 17 00:00:00 2001 From: komal Date: Fri, 11 Dec 2020 19:46:58 +0530 Subject: [PATCH 01/37] added back button --- .../create-new-session/create-new-session.component.html | 4 ++-- .../create-new-session/create-new-session.component.ts | 4 ++++ .../create-new-sprint/create-new-sprint.component.html | 4 ++-- .../body/create-new-sprint/create-new-sprint.component.ts | 4 ++++ .../body/task-details/edit-page/edit-page.component.html | 6 +++--- .../app/body/task-details/edit-page/edit-page.component.ts | 7 ++++++- .../app/body/task-details/log-work/log-work.component.html | 6 ++++++ .../app/body/task-details/log-work/log-work.component.ts | 5 +++++ .../src/app/body/task-details/task-details.component.html | 4 ++-- .../src/app/body/task-details/task-details.component.ts | 5 +++++ worktrolly-ui/src/app/body/tasks/tasks.component.html | 4 ++-- worktrolly-ui/src/app/body/tasks/tasks.component.ts | 7 ++++++- 12 files changed, 47 insertions(+), 13 deletions(-) diff --git a/worktrolly-ui/src/app/body/create-new-session/create-new-session.component.html b/worktrolly-ui/src/app/body/create-new-session/create-new-session.component.html index 049405717..f0842297d 100644 --- a/worktrolly-ui/src/app/body/create-new-session/create-new-session.component.html +++ b/worktrolly-ui/src/app/body/create-new-session/create-new-session.component.html @@ -2,8 +2,8 @@
- - close + + back
diff --git a/worktrolly-ui/src/app/body/create-new-session/create-new-session.component.ts b/worktrolly-ui/src/app/body/create-new-session/create-new-session.component.ts index 37232a05f..1f426278c 100644 --- a/worktrolly-ui/src/app/body/create-new-session/create-new-session.component.ts +++ b/worktrolly-ui/src/app/body/create-new-session/create-new-session.component.ts @@ -52,4 +52,8 @@ export class CreateNewSessionComponent implements OnInit { } } + backToDashboard(){ + this.router.navigate(['/']); + } + } diff --git a/worktrolly-ui/src/app/body/create-new-sprint/create-new-sprint.component.html b/worktrolly-ui/src/app/body/create-new-sprint/create-new-sprint.component.html index c207e9443..c1f1225ca 100644 --- a/worktrolly-ui/src/app/body/create-new-sprint/create-new-sprint.component.html +++ b/worktrolly-ui/src/app/body/create-new-sprint/create-new-sprint.component.html @@ -2,8 +2,8 @@
- - close + + back
diff --git a/worktrolly-ui/src/app/body/create-new-sprint/create-new-sprint.component.ts b/worktrolly-ui/src/app/body/create-new-sprint/create-new-sprint.component.ts index 95c13934b..9e9a42eaf 100644 --- a/worktrolly-ui/src/app/body/create-new-sprint/create-new-sprint.component.ts +++ b/worktrolly-ui/src/app/body/create-new-sprint/create-new-sprint.component.ts @@ -102,4 +102,8 @@ export class CreateNewSprintComponent implements OnInit { } + backToDashboard(){ + this.router.navigate(['/']); + } + } diff --git a/worktrolly-ui/src/app/body/task-details/edit-page/edit-page.component.html b/worktrolly-ui/src/app/body/task-details/edit-page/edit-page.component.html index 52b65327e..a2c3a39d4 100644 --- a/worktrolly-ui/src/app/body/task-details/edit-page/edit-page.component.html +++ b/worktrolly-ui/src/app/body/task-details/edit-page/edit-page.component.html @@ -1,10 +1,10 @@
-
+
- - close + + back
diff --git a/worktrolly-ui/src/app/body/task-details/edit-page/edit-page.component.ts b/worktrolly-ui/src/app/body/task-details/edit-page/edit-page.component.ts index d9f8cbdf7..ed0cac909 100644 --- a/worktrolly-ui/src/app/body/task-details/edit-page/edit-page.component.ts +++ b/worktrolly-ui/src/app/body/task-details/edit-page/edit-page.component.ts @@ -2,6 +2,7 @@ import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angu import { AngularFireFunctions } from '@angular/fire/functions'; import { NgForm } from '@angular/forms'; import { Tasks } from 'src/app/Interface/TasksInterface'; +import { Router } from '@angular/router'; @Component({ selector: 'app-edit-page', @@ -17,7 +18,7 @@ export class EditPageComponent implements OnInit { editTask: Tasks previousSprintId: number - constructor(private functions: AngularFireFunctions) { } + constructor(private functions: AngularFireFunctions, private router: Router) { } ngOnInit(): void { this.editTask = this.task; @@ -51,4 +52,8 @@ export class EditPageComponent implements OnInit { this.editTaskCompleted.emit({ completed: true }); } + backToTaskDetails(){ + window.location.reload(); + } + } diff --git a/worktrolly-ui/src/app/body/task-details/log-work/log-work.component.html b/worktrolly-ui/src/app/body/task-details/log-work/log-work.component.html index 7999e981a..7412c0a64 100644 --- a/worktrolly-ui/src/app/body/task-details/log-work/log-work.component.html +++ b/worktrolly-ui/src/app/body/task-details/log-work/log-work.component.html @@ -2,6 +2,12 @@
+
+
+ + back + +

Log Work