mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
@@ -88,7 +88,7 @@ export const CloudWorkspaceMembersPanel = ({
|
||||
|
||||
const onGenerateInviteLink = useCallback(
|
||||
async (expireTime: WorkspaceInviteLinkExpireTime) => {
|
||||
const link =
|
||||
const { link } =
|
||||
await permissionService.permission.generateInviteLink(expireTime);
|
||||
return link;
|
||||
},
|
||||
|
||||
@@ -16,10 +16,7 @@ export class WorkspacePermissionService extends Service {
|
||||
}
|
||||
|
||||
async leaveWorkspace() {
|
||||
await this.store.leaveWorkspace(
|
||||
this.workspaceService.workspace.id,
|
||||
this.workspaceService.workspace.name$.value ?? ''
|
||||
);
|
||||
await this.store.leaveWorkspace(this.workspaceService.workspace.id);
|
||||
this.workspacesService.list.revalidate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ export class WorkspacePermissionStore extends Store {
|
||||
/**
|
||||
* @param workspaceName for send email
|
||||
*/
|
||||
async leaveWorkspace(workspaceId: string, workspaceName: string) {
|
||||
async leaveWorkspace(workspaceId: string) {
|
||||
if (!this.workspaceServerService.server) {
|
||||
throw new Error('No Server');
|
||||
}
|
||||
@@ -188,7 +188,6 @@ export class WorkspacePermissionStore extends Store {
|
||||
query: leaveWorkspaceMutation,
|
||||
variables: {
|
||||
workspaceId,
|
||||
workspaceName,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user