1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

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> <tbody>
<tr *ngFor="let a of cipher.attachments"> <tr *ngFor="let a of cipher.attachments">
<td> <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> <br>
<small>{{a.sizeName}}</small> <small>{{a.sizeName}}</small>
</td> </td>

View File

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