MCPcopy Create free account
hub / github.com/apitable/apitable / handleNodeShareDisabled

Method handleNodeShareDisabled

packages/core/src/sync/room.ts:772–786  ·  view source on GitHub ↗
(data: INodeShareDisabledData)

Source from the content-addressed store, hash-verified

770
771 @errorCapture<RoomService>()
772 handleNodeShareDisabled(data: INodeShareDisabledData) {
773 console.log('RECEIVED INodeShareDisabledData: ', { data });
774 const state = this.store.getState();
775 const shareId = state.pageParams.shareId;
776 if (shareId && data.shareIds.includes(shareId)) {
777 this.event.destroy?.();
778 throw new EnhanceError({
779 code: StatusCode.NODE_NOT_EXIST,
780 message: t(Strings.error_please_close_sharing_page),
781 okText: t(Strings.okay),
782 modalType: ModalType.Warning,
783 onOkType: OnOkType.BackWorkBench,
784 });
785 }
786 }
787
788 generateStdFieldPermission(data: IFieldPermissionMessage, manageable = false) {
789 return {

Callers 1

RoomServiceClass · 0.95

Calls 3

tFunction · 0.90
destroyMethod · 0.65
logMethod · 0.45

Tested by

no test coverage detected