1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-25 16:59:17 +01:00

[AC-1603] Hide vault selector at Admin Console's import (#8750)

* Hide vault selector at Admin Console's import

* removed duplicated disable
This commit is contained in:
aj-rosado 2024-05-16 15:39:31 +01:00 committed by GitHub
parent 43e1d0a21b
commit aa0627fa38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
{{ "personalOwnershipPolicyInEffectImports" | i18n }}
</bit-callout>
<form [formGroup]="formGroup" [bitSubmit]="submit" id="import_form_importForm">
<bit-form-field>
<bit-form-field [hidden]="isFromAC">
<bit-label
>{{ "importDestination" | i18n }}
<a

View File

@ -132,7 +132,7 @@ export class ImportComponent implements OnInit, OnDestroy {
protected destroy$ = new Subject<void>();
private _importBlockedByPolicy = false;
private _isFromAC = false;
protected isFromAC = false;
formGroup = this.formBuilder.group({
vaultSelector: [
@ -232,7 +232,7 @@ export class ImportComponent implements OnInit, OnDestroy {
.then((collections) => collections.sort(Utils.getSortFunction(this.i18nService, "name"))),
);
this._isFromAC = true;
this.isFromAC = true;
}
private handleImportInit() {
@ -359,7 +359,7 @@ export class ImportComponent implements OnInit, OnDestroy {
importContents,
this.organizationId,
this.formGroup.controls.targetSelector.value,
(await this.canAccessImportExport(this.organizationId)) && this._isFromAC,
(await this.canAccessImportExport(this.organizationId)) && this.isFromAC,
);
//No errors, display success message