1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 11:13:44 +00:00

dont show modal if we already have data

This commit is contained in:
Alex
2025-08-15 13:58:45 -04:00
parent 67d246606d
commit 3d26588b7e

View File

@@ -93,6 +93,12 @@ export class AllApplicationsComponent implements OnInit {
this.dataService.reportResults$
.pipe(takeUntilDestroyed(this.destroyRef))
.subscribe((report) => {
// Check if we already have data in the dataSource (from previous session)
if (this.dataSource.data.length > 0) {
this.hasShownNoDataModal = false; // Reset flag since we have data
return;
}
if (report && report.data && report.data.length > 0) {
this.dataSource.data = report.data;
// this.applicationSummary = this.reportService.generateApplicationsSummary(report.data);
@@ -121,13 +127,6 @@ export class AllApplicationsComponent implements OnInit {
});
}
/**
* Checks if the modal should be shown based on current data state
*/
private shouldShowNoDataModal(): boolean {
return !this.dataSource.data || this.dataSource.data.length === 0;
}
goToCreateNewLoginItem = async () => {
// TODO: implement
this.toastService.showToast({