mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +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:
parent
43e1d0a21b
commit
aa0627fa38
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user