Skip to content

Commit e7fb0ed

Browse files
committed
chore: dont show pro upgrade dialog if notifications visible on top
1 parent 7a37afe commit e7fb0ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/promotions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ define(function (require, exports, module) {
266266

267267
function _isAnyDialogsVisible() {
268268
const $modal = $(`.modal.instance`);
269-
return $modal.length > 0 && $modal.is(':visible');
269+
const $notifications = $(`.notification-ui-tooltip`);
270+
return ($modal.length > 0 && $modal.is(':visible')) ||
271+
($notifications.length > 0 && $notifications.is(':visible'));
270272
}
271273

272274
/**

0 commit comments

Comments
 (0)