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

Commit

Permalink
Merge pull request #198 from GCE-NEIIST/frontend-fix
Browse files Browse the repository at this point in the history
Frontend fix
  • Loading branch information
RafaelAPB authored Jun 10, 2019
2 parents a4e8c81 + d8281c9 commit e448246
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class GceThesisComponent implements OnInit, OnDestroy {
showRecomendations: boolean;
specializationBool = false;
it = false;
isProfessor = false;
course: string = '';
areas: string[] = [];
areaAdvanced: { [area: string]: string[]}= {};
Expand Down Expand Up @@ -82,7 +83,7 @@ export class GceThesisComponent implements OnInit, OnDestroy {
@ViewChild('proposalTable') proposalTable;
ngOnInit() {
this.loadUser();
if(this.gce_thesis_available){
if (this.gce_thesis_available) {
this.getAreas();
this.getThesesByArea();
this.getRecommendedTheses();
Expand Down Expand Up @@ -147,8 +148,9 @@ export class GceThesisComponent implements OnInit, OnDestroy {

loadUser() {
this.user = this.studentService.loadStudentProfile();
this.isProfessor = this.user['roles'].includes("TEACHER");
this.course = this.loadFirstSupportedCourse(this.user['courses']);
this.it = this.course.includes("Engenharia Informática e de Computadores");
this.it = this.course.includes("Engenharia Informática e de Computadores") || this.isProfessor;
}

loadFirstSupportedCourse(courses){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class='container-fluid'>
<div class='col-12'>
<ngb-carousel>

<!--
<ng-template ngbSlide>
<img src="http://web.ist.utl.pt/~ist186413/assets/aerotec.png" alt="AeroTéc">
<img src="http://web.ist.utl.pt/~ist186413/assets/nebm.jpg" alt="Núcleo de Engenharia Biomédica do IST">
<img src="http://web.ist.utl.pt/~ist186413/assets/forummecanica.png" alt="Fórum Mecânica">
</ng-template>

-->
</ngb-carousel>
</div>
</div>

0 comments on commit e448246

Please sign in to comment.