fix(core): add missing control of modifyDocDefaultRole track event (#10625)
This commit is contained in:
@@ -56,7 +56,9 @@ export const MembersPermission = ({
|
|||||||
const changePermission = useAsyncCallback(
|
const changePermission = useAsyncCallback(
|
||||||
async (docRole: DocRole) => {
|
async (docRole: DocRole) => {
|
||||||
try {
|
try {
|
||||||
track.$.sharePanel.$.modifyDocDefaultRole();
|
track.$.sharePanel.$.modifyDocDefaultRole({
|
||||||
|
control: docRole,
|
||||||
|
});
|
||||||
await docGrantedUsersService.updateDocDefaultRole(docRole);
|
await docGrantedUsersService.updateDocDefaultRole(docRole);
|
||||||
shareInfoService.shareInfo.revalidate();
|
shareInfoService.shareInfo.revalidate();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -549,6 +549,9 @@ export type EventArgs = {
|
|||||||
modifyUserDocRole: {
|
modifyUserDocRole: {
|
||||||
control: DocRoleControlType;
|
control: DocRoleControlType;
|
||||||
};
|
};
|
||||||
|
modifyDocDefaultRole: {
|
||||||
|
control: DocRoleControlType;
|
||||||
|
};
|
||||||
inviteUserDocRole: {
|
inviteUserDocRole: {
|
||||||
control: 'member list';
|
control: 'member list';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user