mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user