fix: scope app right-click bypass to view mode only
This commit is contained in:
1 file changed
+3
-1
@@ -170,7 +170,9 @@ export const WidgetContextMenu = ({ item, widgetStateRef, children }: WidgetCont
|
|||||||
|
|
||||||
if (!session) return <>{children}</>;
|
if (!session) return <>{children}</>;
|
||||||
if (!isRightClickEnabled) return <>{children}</>;
|
if (!isRightClickEnabled) return <>{children}</>;
|
||||||
if (item.kind === "app") return <>{children}</>;
|
// App widgets are links — let the browser's native context menu (open in new tab, copy link)
|
||||||
|
// show in view mode. In edit mode keep the Homarr menu so items can still be edited/removed.
|
||||||
|
if (item.kind === "app" && !isEditMode) return <>{children}</>;
|
||||||
|
|
||||||
const visibleWidgetActions = widgetContextActions.filter((a) => !a.hidden);
|
const visibleWidgetActions = widgetContextActions.filter((a) => !a.hidden);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user