mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-25 07:27:04 +00:00
fix(gui): import the ownership helpers the item menu calls
The single-item context menu handler calls is_owned_by_me and shared_mode_for, but the imports were only ever added to generate_file_context_menu.js — so every right-click on an item threw a ReferenceError before the menu could build, and the non-owner Delete gating never ran. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
22dcc72f47
commit
5f440333cd
@@ -32,6 +32,8 @@ import open_item from '../helpers/open_item.js';
|
||||
import publish_as_website from '../helpers/publish_as_website.js';
|
||||
import mime from '../lib/mime.js';
|
||||
import { isWeblinkName, weblinkChangeIconMenuItem } from '../helpers/weblink.js';
|
||||
import { is_owned_by_me } from '../helpers/path_owner.js';
|
||||
import { shared_mode_for } from '../helpers/shared_access.js';
|
||||
|
||||
const AI_APP_NAME = 'ai';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user