2021-02-01 17:37:32 +01:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
2021-06-07 20:13:58 +02:00
|
|
|
import { ApiService } from 'jslib-common/abstractions/api.service';
|
|
|
|
import { CipherService } from 'jslib-common/abstractions/cipher.service';
|
|
|
|
import { CryptoService } from 'jslib-common/abstractions/crypto.service';
|
|
|
|
import { I18nService } from 'jslib-common/abstractions/i18n.service';
|
2021-10-20 18:30:04 +02:00
|
|
|
import { LogService } from 'jslib-common/abstractions/log.service';
|
2021-06-07 20:13:58 +02:00
|
|
|
import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.service';
|
|
|
|
import { UserService } from 'jslib-common/abstractions/user.service';
|
2021-02-01 17:37:32 +01:00
|
|
|
|
2021-06-07 20:13:58 +02:00
|
|
|
import { AttachmentView } from 'jslib-common/models/view/attachmentView';
|
2021-02-01 17:37:32 +01:00
|
|
|
|
2021-06-07 20:13:58 +02:00
|
|
|
import { AttachmentsComponent as BaseAttachmentsComponent } from 'jslib-angular/components/attachments.component';
|
2021-02-01 17:37:32 +01:00
|
|
|
|
|
|
|
@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-10-20 18:30:04 +02:00
|
|
|
platformUtilsService: PlatformUtilsService, apiService: ApiService,
|
|
|
|
logService: LogService) {
|
|
|
|
super(cipherService, i18nService, cryptoService, userService, platformUtilsService, apiService, window,
|
|
|
|
logService);
|
2021-02-01 17:37:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
protected async init() {
|
|
|
|
// Do nothing since cipher is already decoded
|
|
|
|
}
|
|
|
|
|
|
|
|
protected showFixOldAttachments(attachment: AttachmentView) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|