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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user