1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-29 14:43:31 +00:00

Add policy for disabling personal vault export (#1189)

This commit is contained in:
Oscar Hinton
2021-09-15 21:05:02 +02:00
committed by GitHub
parent 30d2aeb6a3
commit 7daba63c56
9 changed files with 69 additions and 13 deletions

View File

@@ -6,11 +6,10 @@ import { EventService } from 'jslib-common/abstractions/event.service';
import { ExportService } from 'jslib-common/abstractions/export.service';
import { I18nService } from 'jslib-common/abstractions/i18n.service';
import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.service';
import { PolicyService } from 'jslib-common/abstractions/policy.service';
import { ExportComponent as BaseExportComponent } from '../../tools/export.component';
import { EventType } from 'jslib-common/enums/eventType';
@Component({
selector: 'app-org-export',
templateUrl: '../../tools/export.component.html',
@@ -18,16 +17,21 @@ import { EventType } from 'jslib-common/enums/eventType';
export class ExportComponent extends BaseExportComponent {
constructor(cryptoService: CryptoService, i18nService: I18nService,
platformUtilsService: PlatformUtilsService, exportService: ExportService,
eventService: EventService, private route: ActivatedRoute) {
super(cryptoService, i18nService, platformUtilsService, exportService, eventService);
eventService: EventService, private route: ActivatedRoute, policyService: PolicyService) {
super(cryptoService, i18nService, platformUtilsService, exportService, eventService, policyService);
}
ngOnInit() {
async ngOnInit() {
await super.ngOnInit();
this.route.parent.parent.params.subscribe(async params => {
this.organizationId = params.organizationId;
});
}
async checkExportDisabled() {
return;
}
getExportData() {
return this.exportService.getOrganizationExport(this.organizationId, this.format);
}