1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-4290] Add pop out warning on import page (#6645)

* No longer popout automatically

* Add FilePopoutCalloutComponent to import-browser

* Hide fileSelector on base import.component when callout is shown

Extend import.component to receive an input to show/hide the FileSelector
Extend import-browser to check if the callout should be shown via the filePopoutUtilsService and pass the returning value onto the base component

* Renamed showFileSelector to hideFileSelector

The default should be to show the fileSelector, so the input should reflect that as an override.

* Added newline between ngOnInit and method below

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith
2023-10-20 15:24:42 +02:00
committed by GitHub
parent 35ed8f1d5e
commit 8dc81b603d
5 changed files with 19 additions and 8 deletions

View File

@@ -344,7 +344,7 @@
and save the zip file.
</ng-container>
</bit-callout>
<bit-form-field>
<bit-form-field *ngIf="!hideFileSelector">
<bit-label>{{ "selectImportFile" | i18n }}</bit-label>
<div class="file-selector">
<button bitButton type="button" buttonType="secondary" (click)="fileSelector.click()">

View File

@@ -120,6 +120,8 @@ export class ImportComponent implements OnInit, OnDestroy {
});
}
@Input() hideFileSelector: boolean;
protected organization: Organization;
protected destroy$ = new Subject<void>();