mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge pull request #2124 from cryptpad/contextmenu-newdoc-fix
Fix: Context menu new document options now respect selected type
This commit is contained in:
commit
cb2fbb9bd2
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user