Page MenuHomePhabricator

D5279.id17351.diff
No OneTemporary

D5279.id17351.diff

diff --git a/web/modals/threads/notifications/notifications-modal.react.js b/web/modals/threads/notifications/notifications-modal.react.js
--- a/web/modals/threads/notifications/notifications-modal.react.js
+++ b/web/modals/threads/notifications/notifications-modal.react.js
@@ -7,6 +7,7 @@
updateSubscriptionActionTypes,
} from 'lib/actions/user-actions';
import { threadInfoSelector } from 'lib/selectors/thread-selectors';
+import { threadIsSidebar } from 'lib/shared/thread-utils';
import {
useServerCall,
useDispatchActionPromise,
@@ -90,6 +91,7 @@
const { onClose, threadID } = props;
const threadInfo = useSelector(state => threadInfoSelector(state)[threadID]);
const { subscription } = threadInfo.currentUser;
+ const isSidebar = threadIsSidebar(threadInfo);
const initialThreadSetting = React.useMemo<NotificationSettings>(() => {
if (!subscription.home) {
@@ -185,8 +187,12 @@
threadID,
]);
+ const modalName = isSidebar
+ ? 'Thread notifications'
+ : 'Channel notifications';
+
return (
- <Modal name="Channel notifications" size="fit-content" onClose={onClose}>
+ <Modal name={modalName} size="fit-content" onClose={onClose}>
<div className={css.container}>
<div className={css.optionsContainer}>
{focusedItem}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 3:59 AM (16 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2510396
Default Alt Text
D5279.id17351.diff (1 KB)

Event Timeline