mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
Add loading spinner icon to emergency access view (#1235)
* add loading spinner icon to emergency access view * remove extra space * Revert changes to package-lock.json
This commit is contained in:
parent
a7a3381124
commit
ee3c3294f3
@ -42,6 +42,10 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="!loaded">
|
||||
<i class="fa fa-spinner fa-spin text-muted" title="{{'loading' | i18n}}" aria-hidden="true"></i>
|
||||
<span class="sr-only">{{'loading' | i18n}}</span>
|
||||
</ng-container>
|
||||
</div>
|
||||
<ng-template #cipherAddEdit></ng-template>
|
||||
<ng-template #attachments></ng-template>
|
||||
|
@ -31,6 +31,7 @@ export class EmergencyAccessViewComponent implements OnInit {
|
||||
|
||||
id: string;
|
||||
ciphers: CipherView[] = [];
|
||||
loaded = false;
|
||||
|
||||
constructor(private cipherService: CipherService, private cryptoService: CryptoService,
|
||||
private modalService: ModalService, private router: Router,
|
||||
@ -60,6 +61,7 @@ export class EmergencyAccessViewComponent implements OnInit {
|
||||
async load() {
|
||||
const response = await this.apiService.postEmergencyAccessView(this.id);
|
||||
this.ciphers = await this.getAllCiphers(response);
|
||||
this.loaded = true;
|
||||
}
|
||||
|
||||
async viewAttachments(cipher: CipherView) {
|
||||
|
Loading…
Reference in New Issue
Block a user