[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 }} {{ "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

View File

@ -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