-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add menu service to disable submenu items, fix login error, fix routi…
…ngs, add edit account in tracking, loading spinner in records change
- Loading branch information
Kamil Dobrzynski
committed
Jan 17, 2018
1 parent
90022a9
commit 0dffca8
Showing
18 changed files
with
342 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 40 additions & 22 deletions
62
src/app/components/tracking/activity/activity.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,44 @@ | ||
<div class="record-list" *ngIf="todaySummaryItems?.length !=0; else empty"> | ||
<div class="record-list__item" *ngFor="let record of todaySummaryItems"> | ||
<div class="record-list__header"> | ||
<span class="record-list__summary">{{ record.summary }}</span> | ||
<span class="record-list__todays-time">{{ record.todaysTime | secondsToTime}}</span> | ||
<div class="container" *ngIf="!loader else loaderContainer"> | ||
<div class="record-list" *ngIf="todaySummaryItems?.length !=0 else empty"> | ||
<div class="record-list__item" *ngFor="let record of todaySummaryItems"> | ||
<div class="record-list__header"> | ||
<span class="record-list__summary">{{ record.summary }}</span> | ||
<span class="record-list__todays-time">{{ record.todaysTime | secondsToTime}}</span> | ||
</div> | ||
<div class="record-list__content"> | ||
<span class="record-list__agile">{{ record.agile }}</span> | ||
<button class="record-list__record" [ngClass]="record.id == timerService.currentIssue?.issueId ? 'recording' : ''" (click)="getIssueAndStart(record.id)"> | ||
<span *ngIf="record.id == timerService.currentIssue?.issueId; else timerOff"><span class="trec-icon-stop"></span>STOP</span> | ||
<ng-template #timerOff><span class="trec-icon-record"></span>REC</ng-template> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="record-list__content"> | ||
<span class="record-list__agile">{{ record.agile }}</span> | ||
<button class="record-list__record" [ngClass]="record.id == timerService.currentIssue?.issueId ? 'recording' : ''" (click)="getIssueAndStart(record.id)"> | ||
<span *ngIf="record.id == timerService.currentIssue?.issueId; else timerOff"><span class="trec-icon-stop"></span>STOP</span> | ||
<ng-template #timerOff><span class="trec-icon-record"></span>REC</ng-template> | ||
</button> | ||
</div> | ||
</div> | ||
<ng-template #empty> | ||
<div class="record-list--empty" *ngIf="todaySummaryItems?.length == 0"> | ||
<img src="../../../../assets/dino-foot.png" alt="foot"> | ||
<div class="record-list__title">You haven't made any time entry yet</div> | ||
<div class="record-list__text">Go back to the Boards tab, select the task and hit record.</div> | ||
<button (click)="goToBoards()">Boards</button> | ||
</div> | ||
</ng-template> | ||
</div> | ||
<ng-template #empty> | ||
<div class="record-list--empty" *ngIf="todaySummaryItems?.length == 0"> | ||
<img src="../../../../assets/dino-foot.png" alt="foot"> | ||
<div class="record-list__title">You haven't made any time entry yet</div> | ||
<div class="record-list__text">Go back to the Boards tab, select the task and hit record.</div> | ||
<button (click)="goToBoards()">Boards</button> | ||
<ng-template #loaderContainer> | ||
<div class="loading-container"> | ||
<div class="spinner"> | ||
<div class="lds-css ng-scope"> | ||
<div class="lds-spinner" style="height:100%"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="loading-container__name"></div> | ||
<div class="loading-container__item"> | ||
<div class="loading-container__title"></div> | ||
<div class="loading-container__content"></div> | ||
</div> | ||
<div class="loading-container__item"> | ||
<div class="loading-container__title"></div> | ||
<div class="loading-container__content"></div> | ||
</div> | ||
</div> | ||
</ng-template> | ||
<div class="loader"> | ||
<ngx-loading [show]="databaseService.loader" [config]="{ backdropBorderRadius: '14px' }"></ngx-loading> | ||
</div> | ||
</ng-template> |
Oops, something went wrong.