fix: fix context menu of sidebar in read only mode

This commit is contained in:
purocean
2022-01-15 18:49:56 +08:00
parent 76fd28db51
commit 2d971de15d
@@ -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