(Mail-ngrx) missing deSelectCurrentFunction() added to mail.component,

back arrow visibility updated for responsive
This commit is contained in:
mustafahlvc 2017-12-14 12:25:48 +03:00
parent 26690990f0
commit 06b0c3775a
2 changed files with 6 additions and 1 deletions

View File

@ -87,7 +87,7 @@
</mat-menu>
</div>
<div *ngIf="currentMail$ | async" fxHide.gt-lg>
<div *ngIf="currentMail$ | async" fxHide.gt-xs>
<button mat-icon-button (click)="deSelectCurrentMail()">
<mat-icon>arrow_back</mat-icon>
</button>

View File

@ -116,6 +116,11 @@ export class FuseMailNgrxComponent implements OnInit, OnDestroy
this.store.dispatch(new fromStore.SetFolderOnSelectedMails(folderId));
}
deSelectCurrentMail()
{
this.store.dispatch(new fromStore.SetCurrentMail(''));
}
refresh()
{
this.cd.markForCheck();