From a1e113bfaf2b3a2a9fed620c68d710b2699d4537 Mon Sep 17 00:00:00 2001 From: bir Date: Mon, 16 Dec 2024 16:12:16 +0100 Subject: [PATCH] Fix being able to open Labels dropdown even if there are no labels The issue is being able to open labels dropdown even if there are no labels. Resolved by only showing dropdown if there are any labels found. close #8141 --- src/mail-app/mail/view/MailView.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mail-app/mail/view/MailView.ts b/src/mail-app/mail/view/MailView.ts index 3190461a6780..b50a26caea16 100644 --- a/src/mail-app/mail/view/MailView.ts +++ b/src/mail-app/mail/view/MailView.ts @@ -6,7 +6,7 @@ import { Dialog } from "../../../common/gui/base/Dialog" import { FeatureType, getMailFolderType, Keys, MailSetKind } from "../../../common/api/common/TutanotaConstants" import { AppHeaderAttrs, Header } from "../../../common/gui/Header.js" import type { Mail, MailBox, MailFolder } from "../../../common/api/entities/tutanota/TypeRefs.js" -import { isEmpty, noOp, ofClass } from "@tutao/tutanota-utils" +import { assertNotNull, isEmpty, noOp, ofClass } from "@tutao/tutanota-utils" import { MailListView } from "./MailListView" import { assertMainOrNode, isApp } from "../../../common/api/common/Env" import type { Shortcut } from "../../../common/misc/KeyManager" @@ -586,12 +586,13 @@ export class MailView extends BaseTopLevelView implements TopLevelView