Page MenuHomePhabricator

D3285.id9990.diff
No OneTemporary

D3285.id9990.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, 8:09 PM (10 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2704874
Default Alt Text
D3285.id9990.diff (1 KB)

Event Timeline