Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3299732
D13359.id44304.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13359.id44304.diff
View Options
diff --git a/web/modals/threads/members/members-modal.react.js b/web/modals/threads/members/members-modal.react.js
--- a/web/modals/threads/members/members-modal.react.js
+++ b/web/modals/threads/members/members-modal.react.js
@@ -86,15 +86,25 @@
);
}, [adminMembers, allMembers, tab, threadInfo]);
- const threadMembersModalContent = React.useMemo(
- () => (
+ const threadMembersModalContent = React.useMemo(() => {
+ if (adminMembers.length === 0) {
+ return (
+ <div className={css.modalContentContainer}>
+ <ThreadMembersList
+ threadInfo={threadInfo}
+ threadMembers={allMembers}
+ />
+ </div>
+ );
+ }
+
+ return (
<div className={css.modalContentContainer}>
{tabs}
<div className={css.membersListTabsContent}>{tabContent}</div>
</div>
- ),
- [tabContent, tabs],
- );
+ );
+ }, [tabContent, tabs, adminMembers.length, allMembers, threadInfo]);
return threadMembersModalContent;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 3:07 PM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2534980
Default Alt Text
D13359.id44304.diff (1 KB)
Attached To
Mode
D13359: [web] Remove admins tab when there are no admins
Attached
Detach File
Event Timeline
Log In to Comment