Page MenuHomePhabricator

D3285.diff
No OneTemporary

D3285.diff

diff --git a/web/chat/thread-menu.react.js b/web/chat/thread-menu.react.js
--- a/web/chat/thread-menu.react.js
+++ b/web/chat/thread-menu.react.js
@@ -123,15 +123,24 @@
);
const separator = <hr key="separator" className={css.separator} />;
+ // TODO: Enable menu items when the modals are implemented
+ const SHOW_SETTINGS = false;
+ const SHOW_NOTIFICATIONS = false;
+ const SHOW_MEMBERS = false;
+ const SHOW_SIDEBAR = false;
+ const SHOW_VIEW_SUBCHANNELS = false;
+ const SHOW_CREATE_SUBCHANNELS = false;
+ const SHOW_LEAVE_THREAD = false;
+
const items = [
- settingsItem,
- notificationsItem,
- membersItem,
- sidebarItem,
- viewSubchannelsItem,
- createSubchannelsItem,
- leaveThreadItem && separator,
- leaveThreadItem,
+ SHOW_SETTINGS && settingsItem,
+ SHOW_NOTIFICATIONS && notificationsItem,
+ SHOW_MEMBERS && membersItem,
+ SHOW_SIDEBAR && sidebarItem,
+ SHOW_VIEW_SUBCHANNELS && viewSubchannelsItem,
+ SHOW_CREATE_SUBCHANNELS && createSubchannelsItem,
+ SHOW_LEAVE_THREAD && leaveThreadItem && separator,
+ SHOW_LEAVE_THREAD && leaveThreadItem,
];
return items.filter(Boolean);
}, [

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 9:01 AM (11 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2704874
Default Alt Text
D3285.diff (1 KB)

Event Timeline