2021-02-01 17:37:32 +01:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
2021-03-29 16:44:08 +02:00
|
|
|
import { ApiService } from 'jslib/abstractions/api.service';
|
2021-02-01 17:37:32 +01:00
|
|
|
import { CipherService } from 'jslib/abstractions/cipher.service';
|
|
|
|
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
|
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
|
|
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
|
|
|
import { UserService } from 'jslib/abstractions/user.service';
|
|
|
|
|
|
|
|
import { AttachmentView } from 'jslib/models/view/attachmentView';
|
|
|
|
|
|
|
|
import { AttachmentsComponent as BaseAttachmentsComponent } from 'jslib/angular/components/attachments.component';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'emergency-access-attachments',
|
|
|
|
templateUrl: '../vault/attachments.component.html',
|
|
|
|
})
|
|
|
|
export class EmergencyAccessAttachmentsComponent extends BaseAttachmentsComponent {
|
|
|
|
viewOnly = true;
|
|
|
|
canAccessAttachments = true;
|
|
|
|
|
|
|
|
constructor(cipherService: CipherService, i18nService: I18nService,
|
|
|
|
cryptoService: CryptoService, userService: UserService,
|
2021-03-29 16:44:08 +02:00
|
|
|
platformUtilsService: PlatformUtilsService, apiService: ApiService) {
|
|
|
|
super(cipherService, i18nService, cryptoService, userService, platformUtilsService, apiService, window);
|
2021-02-01 17:37:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
protected async init() {
|
|
|
|
// Do nothing since cipher is already decoded
|
|
|
|
}
|
|
|
|
|
|
|
|
protected showFixOldAttachments(attachment: AttachmentView) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|