mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
* Use bitTypography for page title * Replaced app-callout with bit-callout * Replace button with bit-button * Update radio buttons to use CL * Use searchable select for fileFormat dropdown * Remove unneeded divs (old styling) * pm-1826 remove eslint-disable tailwindcss/no-custom-classname * Removed for-attribute from bit-labels * Removed bitInput from bit-selects * Removed name-attribute from bit-selects * Make format a required field * Removed unused dependency on cryptoService * Remove unused dependency on BroadcasterService * Removed dependency on window * Moved organizationId into BaseExportComponent * Add vaultSelector Add organizationService as new dependency Retrieve organizations a user has access to Add vaultSelector dropdown Add `export from` label Add exportFromHint * Removed hint as discussed by product&design * Add function to check for import/export permission * Export callout should listen to changes Even though the organizationId was changed, the Input did not trigger changing the scope * Reading FlexibleCollections feature flag to show the vault-selector on export (#7196) --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com> Co-authored-by: aj-rosado <109146700+aj-rosado@users.noreply.github.com>
49 lines
2.1 KiB
TypeScript
49 lines
2.1 KiB
TypeScript
import { Component, OnInit } from "@angular/core";
|
|
import { UntypedFormBuilder } from "@angular/forms";
|
|
|
|
import { ExportComponent as BaseExportComponent } from "@bitwarden/angular/tools/export/components/export.component";
|
|
import { EventCollectionService } from "@bitwarden/common/abstractions/event/event-collection.service";
|
|
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
|
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
|
import { UserVerificationService } from "@bitwarden/common/auth/abstractions/user-verification/user-verification.service.abstraction";
|
|
import { FileDownloadService } from "@bitwarden/common/platform/abstractions/file-download/file-download.service";
|
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
|
import { DialogService } from "@bitwarden/components";
|
|
import { VaultExportServiceAbstraction } from "@bitwarden/exporter/vault-export";
|
|
|
|
@Component({
|
|
selector: "app-export",
|
|
templateUrl: "export.component.html",
|
|
})
|
|
export class ExportComponent extends BaseExportComponent implements OnInit {
|
|
constructor(
|
|
i18nService: I18nService,
|
|
platformUtilsService: PlatformUtilsService,
|
|
exportService: VaultExportServiceAbstraction,
|
|
eventCollectionService: EventCollectionService,
|
|
policyService: PolicyService,
|
|
userVerificationService: UserVerificationService,
|
|
formBuilder: UntypedFormBuilder,
|
|
logService: LogService,
|
|
fileDownloadService: FileDownloadService,
|
|
dialogService: DialogService,
|
|
organizationService: OrganizationService,
|
|
) {
|
|
super(
|
|
i18nService,
|
|
platformUtilsService,
|
|
exportService,
|
|
eventCollectionService,
|
|
policyService,
|
|
logService,
|
|
userVerificationService,
|
|
formBuilder,
|
|
fileDownloadService,
|
|
dialogService,
|
|
organizationService,
|
|
);
|
|
}
|
|
}
|