mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix: fix context menu of sidebar in read only mode
This commit is contained in:
@@ -28,7 +28,7 @@ export default {
|
||||
const isMarkdown = node.type === 'file' && node.path.toLowerCase().endsWith('.md')
|
||||
|
||||
const disableItems = ctx.args.FLAG_READONLY
|
||||
? ['duplicate', 'create', 'rename', 'delete', 'openInTerminal', 'create']
|
||||
? ['duplicate', 'duplicate', 'create-dir', 'create-doc', 'create-in-cd', 'rename', 'delete', 'open-in-terminal']
|
||||
: []
|
||||
|
||||
const t = ctx.i18n.t
|
||||
|
||||
Reference in New Issue
Block a user