Skip to content

Commit 781a0a6

Browse files
author
FalkWolsky
committed
Open App View and App Edit in new Window
1 parent 1fd798f commit 781a0a6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

client/packages/lowcoder/src/util/homeResUtils.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ export const HomeResInfo: Record<
4949
};
5050

5151
export const handleAppEditClick = (e: any, id: string): void => {
52-
if (e?.metaKey) {
53-
window.open(APPLICATION_VIEW_URL(id, "edit"));
52+
/* if (e?.metaKey) {
53+
window.open(APPLICATION_VIEW_URL(id, "edit"), '_blank');
5454
} else {
55-
history.push(APPLICATION_VIEW_URL(id, "edit"));
56-
}
55+
history.push(APPLICATION_VIEW_URL(id, "edit"), '_blank');
56+
} */
57+
window.open(APPLICATION_VIEW_URL(id, "edit"), '_blank');
5758
};
5859

59-
export const handleAppViewClick = (id: string) => window.open(APPLICATION_VIEW_URL(id, "view"));
60+
export const handleAppViewClick = (id: string) => window.open(APPLICATION_VIEW_URL(id, "view"), '_blank');
6061

61-
export const handleMarketplaceAppViewClick = (id: string, isLocalMarketplace?: boolean) => isLocalMarketplace == true ? window.open(APPLICATION_VIEW_URL(id, "view_marketplace")) : window.open(APPLICATION_MARKETPLACE_VIEW_URL(id, "view_marketplace"));
62+
export const handleMarketplaceAppViewClick = (id: string, isLocalMarketplace?: boolean) => isLocalMarketplace == true ? window.open(APPLICATION_VIEW_URL(id, "view_marketplace"), '_blank') : window.open(APPLICATION_MARKETPLACE_VIEW_URL(id, "view_marketplace"), '_blank');
6263

6364
export const handleFolderViewClick = (id: string) => history.push(buildFolderUrl(id));

0 commit comments

Comments
 (0)