mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
chore(core): doc role telemetry (#10822)
This commit is contained in:
@@ -58,7 +58,7 @@ export const MembersPermission = ({
|
||||
async (docRole: DocRole) => {
|
||||
try {
|
||||
track.$.sharePanel.$.modifyDocDefaultRole({
|
||||
control: docRole,
|
||||
role: docRole,
|
||||
});
|
||||
await docGrantedUsersService.updateDocDefaultRole(docRole);
|
||||
shareInfoService.shareInfo.revalidate();
|
||||
|
||||
@@ -148,7 +148,7 @@ const Options = ({
|
||||
|
||||
const updateUserRole = useCallback(
|
||||
async (userId: string, role: DocRole) => {
|
||||
track.$.sharePanel.$.modifyUserDocRole({ control: role });
|
||||
track.$.sharePanel.$.modifyUserDocRole({ control: 'Update', role });
|
||||
try {
|
||||
const res = await docGrantedUsersService.updateUserRole(userId, role);
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user