Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' of https://github.com/h-da/geli into feature/#599
Browse files Browse the repository at this point in the history
-Dedicated-File-Screen

# Conflicts:
#	app/webFrontend/src/app/course/course-detail/course-detail.component.ts
#	app/webFrontend/src/app/course/course-detail/download-course-dialog/download-course-dialog.component.ts
  • Loading branch information
HPunktOchs committed May 15, 2018
1 parent 31eef06 commit 71061ff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/webFrontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AfterViewInit, Component, OnInit} from '@angular/core';
import {AfterViewInit, Component, OnDestroy, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import 'rxjs/add/operator/switchMap';
import {CourseService, UserDataService} from '../../shared/services/data.service';
Expand All @@ -9,14 +9,15 @@ import {MatSnackBar, MatDialog} from '@angular/material';
import {TitleService} from '../../shared/services/title.service';
import {LastVisitedCourseContainerUpdater} from '../../shared/utils/LastVisitedCourseContainerUpdater';
import {DialogService} from '../../shared/services/dialog.service';
import {DataSharingService} from '../../shared/services/data-sharing.service';


@Component({
selector: 'app-course-detail',
templateUrl: './course-detail.component.html',
styleUrls: ['./course-detail.component.scss']
})
export class CourseDetailComponent implements OnInit {
export class CourseDetailComponent implements OnInit, OnDestroy {

course: ICourse;
id: string;
Expand All @@ -34,7 +35,8 @@ export class CourseDetailComponent implements OnInit {
private dialog: MatDialog,
private titleService: TitleService,
private userDataService: UserDataService,
private dialogService: DialogService) {
private dialogService: DialogService,
private dataSharingService: DataSharingService) {
}

ngOnInit() {
Expand All @@ -50,4 +52,7 @@ export class CourseDetailComponent implements OnInit {
this.dialogService.userProfile(teacher);
}

ngOnDestroy() {
this.dataSharingService.deleteDataForKey('course');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import {DataSharingService} from '../../../shared/services/data-sharing.service'
export class CourseOverviewComponent implements OnInit {
course: ICourse;

constructor(private dataSharingService: DataSharingService,
private route: ActivatedRoute,) {
constructor(private dataSharingService: DataSharingService) {
}

ngOnInit() {
Expand Down

0 comments on commit 71061ff

Please sign in to comment.