From d94fa97a9709b15ea8e7e038d91a048d00e82d2b Mon Sep 17 00:00:00 2001 From: nikita_bartoshuk Date: Wed, 18 Jun 2025 14:02:58 +0300 Subject: [PATCH] fix: reworked menuitems --- apps/common/main/lib/view/Comments.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/common/main/lib/view/Comments.js b/apps/common/main/lib/view/Comments.js index c5b7bc6ca6..16e9e26c0a 100644 --- a/apps/common/main/lib/view/Comments.js +++ b/apps/common/main/lib/view/Comments.js @@ -413,18 +413,21 @@ define([ caption: this.textOpen, checkable: true, visible: true, + toggleGroup: 'filterstatus', value: 'open' }, { caption: this.textResolved, checkable: true, visible: true, + toggleGroup: 'filterstatus', value: 'resolved' }, { caption: this.textAll, checkable: true, visible: true, + toggleGroup: 'filterstatus', value: 'all', checked: true } @@ -939,13 +942,6 @@ define([ }, onFilterCommentsClick: function(menu, item, state) { - if (!state) return; - - menu.items.forEach(function (it) { - if (it !== item) { - it.setChecked(false); - } - }); state && this.fireEvent('comment:filtercomments', [item.value]); },