* dashboard start slide navigation button removed when team is not selected

* watcher table icons changed
This commit is contained in:
Dávid Danyi 2018-09-12 18:01:28 +02:00
parent 80dc5b54e8
commit 79227258e8
3 changed files with 11 additions and 5 deletions

View File

@ -2,7 +2,7 @@
<h1 class="ui dividing header">Dashboard</h1>
<div class="ui four cards">
<a class="ui raised yellow card" [routerLink]="['/kanban']">
<a class="ui raised yellow card" [routerLink]="['/kanban']" *ngIf="hasTeamSelected">
<div class="content">
<div class="header">Start slideshow</div>
<div class="meta">

8
src/app/admin/dashboard/dashboard.component.ts Normal file → Executable file
View File

@ -1,5 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import {SettingsService} from '../../shared/service/settings.service';
@Component({
selector: 'app-dashboard',
@ -8,10 +9,15 @@ import { Title } from '@angular/platform-browser';
})
export class DashboardComponent implements OnInit {
constructor(private titleService: Title) { }
constructor(private titleService: Title,
private settingService: SettingsService) { }
ngOnInit() {
this.titleService.setTitle('Dashboard : MTAStv');
}
get hasTeamSelected(): boolean {
return this.settingService.team.id !== null;
}
}

View File

@ -2,9 +2,9 @@
<table class="ui large padded inverted celled2 table" *ngIf="watchers.length">
<thead>
<tr>
<th class="collapsing"><i class="user icon"></i>Assignee</th>
<th><i class="clock outline icon"></i>Issue</th>
<th><i class="sticky note outline icon"></i>Last comment</th>
<th class="collapsing"><i class="user icon"></i></th>
<th><i class="tasks icon"></i>JIRA</th>
<th><i class="envelope open outline icon"></i>Last comment</th>
</tr>
</thead>
<tbody>