Merge pull request #2124 from cryptpad/contextmenu-newdoc-fix

Fix: Context menu new document options now respect selected type
This commit is contained in:
yflory 2026-01-09 17:25:35 +01:00 committed by GitHub
commit cb2fbb9bd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -501,6 +501,7 @@ define([
h("ul.dropdown-menu", getNewPadTypes().map(function (app) {
return isAppEnabled(app) ? h('li', h('a.cp-app-drive-context-newdoc.dropdown-item.cp-app-drive-context-editable' + (restricted[app] === 0 ? '.cp-app-disabled' : ''), {
'tabindex': '-1',
'data-type': app,
},[
Icons.get(AppConfig.applicationsIcon[app] || 'file'),
Messages.type[app]