add download file function for attachments

This commit is contained in:
Kyle Spearrin 2018-06-08 12:16:47 -04:00
parent d256a872fc
commit 3de3c7a189
3 changed files with 4 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit 8a1bc30fc996fa787c981abdc6fc78e961ced4b5
Subproject commit 4c083eeb92d599bd8b85fb88ec5d435079b79395

View File

@ -15,7 +15,8 @@
<tbody>
<tr *ngFor="let a of cipher.attachments">
<td>
{{a.fileName}}
<a href="#" appStopClick appBlurCLick (click)="download(a)">{{a.fileName}}</a>
<i class="fa fa-spinner fa-fw fa-spin text-muted" *ngIf="a.downloading"></i>
<br>
<small>{{a.sizeName}}</small>
</td>

View File

@ -21,6 +21,6 @@ export class AttachmentsComponent extends BaseAttachmentsComponent {
cryptoService: CryptoService, tokenService: TokenService,
platformUtilsService: PlatformUtilsService) {
super(cipherService, analytics, toasterService, i18nService, cryptoService, tokenService,
platformUtilsService);
platformUtilsService, window);
}
}