chore(core): doc role telemetry (#10822)

This commit is contained in:
forehalo
2025-03-13 08:15:46 +00:00
parent 7ba1c1b271
commit 7100d87efe
4 changed files with 51 additions and 17 deletions

View File

@@ -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();

View File

@@ -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) {