Skip to content

Commit a3696ea

Browse files
PM-26495 Activity tab empty state changed (#16726)
1 parent a690e9a commit a3696ea

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

apps/web/src/locales/en/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"sendReminders": {
9494
"message": "Send reminders"
9595
},
96-
"criticalApplicationsActivityDescription": {
96+
"onceYouMarkApplicationsCriticalTheyWillDisplayHere": {
9797
"message": "Once you mark applications critical, they will display here."
9898
},
9999
"viewAtRiskMembers": {

bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-activity.component.html

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,7 @@
44
</div>
55
}
66

7-
@if (!(isLoading$ | async) && (noData$ | async)) {
8-
<div class="tw-mt-4">
9-
<bit-no-items class="tw-text-main">
10-
<ng-container slot="title">
11-
<h2 class="tw-font-semibold tw-mt-4">
12-
{{ "noAppsInOrgTitle" | i18n: organization?.name }}
13-
</h2>
14-
</ng-container>
15-
</bit-no-items>
16-
</div>
17-
}
18-
19-
@if (!(isLoading$ | async) && !(noData$ | async)) {
7+
@if (!(isLoading$ | async)) {
208
<ul
219
class="tw-inline-grid tw-grid-cols-3 tw-gap-6 tw-m-0 tw-p-0 tw-w-full tw-auto-cols-auto tw-list-none"
2210
>

bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-activity.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, DestroyRef, inject, OnInit } from "@angular/core";
22
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
33
import { ActivatedRoute } from "@angular/router";
4-
import { BehaviorSubject, firstValueFrom } from "rxjs";
4+
import { firstValueFrom } from "rxjs";
55

66
import {
77
AllActivitiesService,
@@ -31,7 +31,6 @@ import { RiskInsightsTabType } from "./risk-insights.component";
3131
})
3232
export class AllActivityComponent implements OnInit {
3333
protected isLoading$ = this.dataService.isLoading$;
34-
protected noData$ = new BehaviorSubject(true);
3534
organization: Organization | null = null;
3635
totalCriticalAppsAtRiskMemberCount = 0;
3736
totalCriticalAppsCount = 0;
@@ -53,7 +52,6 @@ export class AllActivityComponent implements OnInit {
5352
this.allActivitiesService.reportSummary$
5453
.pipe(takeUntilDestroyed(this.destroyRef))
5554
.subscribe((summary) => {
56-
this.noData$.next(summary.totalApplicationCount === 0);
5755
this.totalCriticalAppsAtRiskMemberCount = summary.totalCriticalAtRiskMemberCount;
5856
this.totalCriticalAppsCount = summary.totalCriticalApplicationCount;
5957
this.totalCriticalAppsAtRiskCount = summary.totalCriticalAtRiskApplicationCount;

0 commit comments

Comments
 (0)