View commits of the current configured team members.
+Starts playing the slideshow on this device.
diff --git a/src/app/admin/admin-routing.module.ts b/src/app/admin/admin-routing.module.ts index 414e388..8150c0f 100644 --- a/src/app/admin/admin-routing.module.ts +++ b/src/app/admin/admin-routing.module.ts @@ -14,6 +14,11 @@ import { DashboardComponent } from './dashboard/dashboard.component'; const routes: Routes = [ { path: 'admin', + redirectTo: '/dashboard', + pathMatch: 'full' + // canActivate: [AuthGuardService, RoleGuardService], + }, { + path: 'dashboard', component: DashboardComponent, // canActivate: [AuthGuardService, RoleGuardService], }, { diff --git a/src/app/admin/dashboard/dashboard.component.html b/src/app/admin/dashboard/dashboard.component.html index 3b92002..4c7539e 100644 --- a/src/app/admin/dashboard/dashboard.component.html +++ b/src/app/admin/dashboard/dashboard.component.html @@ -4,12 +4,12 @@
View commits of the current configured team members.
+Starts playing the slideshow on this device.
Create teams, manage team members.
-Create teams, manage team members.
+| Owner | @@ -12,7 +12,7 @@||
|---|---|---|
| {{commit.owner}} | {{commit.gerrit_time}} | {{commit.gerrit_change_subject}} | diff --git a/src/app/display/commit-tracker/commit-tracker.component.ts b/src/app/display/commit-tracker/commit-tracker.component.ts index 8a25fad..86ad84a 100644 --- a/src/app/display/commit-tracker/commit-tracker.component.ts +++ b/src/app/display/commit-tracker/commit-tracker.component.ts @@ -1,23 +1,35 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, HostBinding, OnDestroy, OnInit } from '@angular/core'; import { Title } from '@angular/platform-browser'; import { ActivatedRoute } from '@angular/router'; +import { Subscription } from 'rxjs/Subscription'; +import { TimerObservable } from 'rxjs/observable/TimerObservable'; +import { slideInOutAnimation } from '../../shared/slide-in-out-animation'; import { CommitTrackerService } from '../../shared/service/commit-tracker.service'; +import { SettingsService } from '../../shared/service/settings.service'; import { Commit } from '../../shared/commit'; import { CommitStatus } from '../../shared/commit-status.enum'; import { Result } from '../../shared/result.enum'; import { Build } from '../../shared/build'; +const TIMER_COMMITTRACKER_REFRESH = 10000; + @Component({ selector: 'app-commit-tracker', templateUrl: './commit-tracker.component.html', - styleUrls: ['./commit-tracker.component.css'] + styleUrls: ['./commit-tracker.component.css'], + animations: [slideInOutAnimation] }) -export class CommitTrackerComponent implements OnInit { +export class CommitTrackerComponent implements OnInit, OnDestroy { public CommitStatus = CommitStatus; + private refreshCommitTrackerTimer: Subscription; + + @HostBinding('@slideInOutAnimation') + slideIn = false; constructor(private commitTrackerService: CommitTrackerService, + private settings: SettingsService, private titleService: Title, private route: ActivatedRoute) { } @@ -25,6 +37,16 @@ export class CommitTrackerComponent implements OnInit { ngOnInit() { this.titleService.setTitle('Commit-tracker : MTAStv'); this.route.data.subscribe((data: { commits: Array