diff options
author | crupest <crupest@outlook.com> | 2022-04-10 19:07:42 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-04-10 19:07:42 +0800 |
commit | d260c3c3fa073d1a9d09b94c5c4749334e26ab9a (patch) | |
tree | 2724962c74467c759e21afbd923127baa3f9eba6 /FrontEnd/src/views/timeline/TimelineMember.tsx | |
parent | 928ba0ce419bacba113951095278a5138ead34cf (diff) | |
download | timeline-d260c3c3fa073d1a9d09b94c5c4749334e26ab9a.tar.gz timeline-d260c3c3fa073d1a9d09b94c5c4749334e26ab9a.tar.bz2 timeline-d260c3c3fa073d1a9d09b94c5c4749334e26ab9a.zip |
...
Diffstat (limited to 'FrontEnd/src/views/timeline/TimelineMember.tsx')
-rw-r--r-- | FrontEnd/src/views/timeline/TimelineMember.tsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/FrontEnd/src/views/timeline/TimelineMember.tsx b/FrontEnd/src/views/timeline/TimelineMember.tsx index 59d4c371..27355081 100644 --- a/FrontEnd/src/views/timeline/TimelineMember.tsx +++ b/FrontEnd/src/views/timeline/TimelineMember.tsx @@ -116,7 +116,11 @@ const TimelineMemberUserSearch: React.FC<{ add onAction={() => { void getHttpTimelineClient() - .memberPut(timeline.name, user.username) + .memberPut( + timeline.owner.username, + timeline.nameV2, + user.username + ) .then(() => { setUserSearchText(""); setUserSearchState({ type: "init" }); @@ -160,7 +164,11 @@ const TimelineMember: React.FC<TimelineMemberProps> = (props) => { timeline.manageable && index !== 0 ? () => { void getHttpTimelineClient() - .memberDelete(timeline.name, member.username) + .memberDelete( + timeline.owner.username, + timeline.nameV2, + member.username + ) .then(onChange); } : undefined |