1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-03-01 03:31:15 +01:00

Show spinner when downloading file for Send Accesses (#869)

This commit is contained in:
Matt Gibson 2021-03-04 14:58:45 -06:00 committed by GitHub
parent 473dd8739a
commit a6c98f462a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,9 +59,12 @@
<!-- File -->
<ng-container *ngIf="send.type === sendType.File">
<p>{{send.file.fileName}}</p>
<button class="btn btn-primary btn-block" type="button" (click)="download()">
<button class="btn btn-primary btn-block" type="button" (click)="download()" *ngIf="!downloading">
<i class="fa fa-download" aria-hidden="true"></i>
{{'downloadFile' | i18n}} ({{send.file.sizeName}})</button>
<button class="btn btn-primary btn-block" type="button" *ngIf="downloading" disabled="true">
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i>
</button>
</ng-container>
<p *ngIf="expirationDate" class="text-center text-muted">Expires:
{{expirationDate | date: 'medium'}}</p>