mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-18 01:41:27 +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 }}
|
{{ "personalOwnershipPolicyInEffectImports" | i18n }}
|
||||||
</bit-callout>
|
</bit-callout>
|
||||||
<form [formGroup]="formGroup" [bitSubmit]="submit" id="import_form_importForm">
|
<form [formGroup]="formGroup" [bitSubmit]="submit" id="import_form_importForm">
|
||||||
<bit-form-field>
|
<bit-form-field [hidden]="isFromAC">
|
||||||
<bit-label
|
<bit-label
|
||||||
>{{ "importDestination" | i18n }}
|
>{{ "importDestination" | i18n }}
|
||||||
<a
|
<a
|
||||||
|
@ -132,7 +132,7 @@ export class ImportComponent implements OnInit, OnDestroy {
|
|||||||
protected destroy$ = new Subject<void>();
|
protected destroy$ = new Subject<void>();
|
||||||
|
|
||||||
private _importBlockedByPolicy = false;
|
private _importBlockedByPolicy = false;
|
||||||
private _isFromAC = false;
|
protected isFromAC = false;
|
||||||
|
|
||||||
formGroup = this.formBuilder.group({
|
formGroup = this.formBuilder.group({
|
||||||
vaultSelector: [
|
vaultSelector: [
|
||||||
@ -232,7 +232,7 @@ export class ImportComponent implements OnInit, OnDestroy {
|
|||||||
.then((collections) => collections.sort(Utils.getSortFunction(this.i18nService, "name"))),
|
.then((collections) => collections.sort(Utils.getSortFunction(this.i18nService, "name"))),
|
||||||
);
|
);
|
||||||
|
|
||||||
this._isFromAC = true;
|
this.isFromAC = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleImportInit() {
|
private handleImportInit() {
|
||||||
@ -359,7 +359,7 @@ export class ImportComponent implements OnInit, OnDestroy {
|
|||||||
importContents,
|
importContents,
|
||||||
this.organizationId,
|
this.organizationId,
|
||||||
this.formGroup.controls.targetSelector.value,
|
this.formGroup.controls.targetSelector.value,
|
||||||
(await this.canAccessImportExport(this.organizationId)) && this._isFromAC,
|
(await this.canAccessImportExport(this.organizationId)) && this.isFromAC,
|
||||||
);
|
);
|
||||||
|
|
||||||
//No errors, display success message
|
//No errors, display success message
|
||||||
|
Loading…
Reference in New Issue
Block a user