diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 2ea1a4a01c..3ed599c835 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -114,6 +114,7 @@ import { DeauthorizeSessionsComponent } from './settings/deauthorize-sessions.co
import { DeleteAccountComponent } from './settings/delete-account.component';
import { DomainRulesComponent } from './settings/domain-rules.component';
import { EmergencyAccessAddEditComponent } from './settings/emergency-access-add-edit.component';
+import { EmergencyAccessAttachmentsComponent } from './settings/emergency-access-attachments.component';
import { EmergencyAccessComponent } from './settings/emergency-access.component';
import { EmergencyAccessConfirmComponent } from './settings/emergency-access-confirm.component';
import { EmergencyAccessTakeoverComponent } from './settings/emergency-access-takeover.component';
@@ -304,6 +305,7 @@ registerLocaleData(localeZhTw, 'zh-TW');
DomainRulesComponent,
DownloadLicenseComponent,
EmergencyAccessAddEditComponent,
+ EmergencyAccessAttachmentsComponent,
EmergencyAccessComponent,
EmergencyAccessConfirmComponent,
EmergencyAccessTakeoverComponent,
@@ -424,6 +426,7 @@ registerLocaleData(localeZhTw, 'zh-TW');
DeleteAccountComponent,
DeleteOrganizationComponent,
EmergencyAccessAddEditComponent,
+ EmergencyAccessAttachmentsComponent,
EmergencyAccessConfirmComponent,
EmergencyAccessTakeoverComponent,
EmergencyAddEditComponent,
diff --git a/src/app/organizations/vault/attachments.component.ts b/src/app/organizations/vault/attachments.component.ts
index 7b470d1db7..de214478cd 100644
--- a/src/app/organizations/vault/attachments.component.ts
+++ b/src/app/organizations/vault/attachments.component.ts
@@ -20,6 +20,7 @@ import { AttachmentsComponent as BaseAttachmentsComponent } from '../../vault/at
templateUrl: '../../vault/attachments.component.html',
})
export class AttachmentsComponent extends BaseAttachmentsComponent {
+ viewOnly = false;
organization: Organization;
constructor(cipherService: CipherService, i18nService: I18nService,
diff --git a/src/app/settings/emergency-access-attachments.component.ts b/src/app/settings/emergency-access-attachments.component.ts
new file mode 100644
index 0000000000..8cbbfb1062
--- /dev/null
+++ b/src/app/settings/emergency-access-attachments.component.ts
@@ -0,0 +1,34 @@
+import { Component } from '@angular/core';
+
+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,
+ platformUtilsService: PlatformUtilsService) {
+ super(cipherService, i18nService, cryptoService, userService, platformUtilsService, window);
+ }
+
+ protected async init() {
+ // Do nothing since cipher is already decoded
+ }
+
+ protected showFixOldAttachments(attachment: AttachmentView) {
+ return false;
+ }
+}
diff --git a/src/app/settings/emergency-access-view.component.html b/src/app/settings/emergency-access-view.component.html
index 4b44896b9b..bdb421754c 100644
--- a/src/app/settings/emergency-access-view.component.html
+++ b/src/app/settings/emergency-access-view.component.html
@@ -23,9 +23,25 @@
{{c.subTitle}}
+