mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[PM-19106] view-item folder bug fix (#13808)
added security task flag check to task api call in cipher-view
This commit is contained in:
@@ -171,6 +171,10 @@ export class CipherViewComponent implements OnChanges, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async checkPendingChangePasswordTasks(userId: UserId): Promise<void> {
|
async checkPendingChangePasswordTasks(userId: UserId): Promise<void> {
|
||||||
|
if (!(await firstValueFrom(this.isSecurityTasksEnabled$))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const tasks = await firstValueFrom(this.defaultTaskService.pendingTasks$(userId));
|
const tasks = await firstValueFrom(this.defaultTaskService.pendingTasks$(userId));
|
||||||
|
|
||||||
this.hadPendingChangePasswordTask = tasks?.some((task) => {
|
this.hadPendingChangePasswordTask = tasks?.some((task) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user