Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Teutsch <chris@heychris.eu>2019-10-19 02:18:53 +0300
committerChristopher Teutsch <chris@heychris.eu>2019-10-19 03:08:47 +0300
commit651e9d0e9bf2fb485ebd86e91e5434dd3c4e652e (patch)
treed9a33a4d481ea2eb2b44413761430a71b1509509 /src/helpers/files.js
parent5982c9d9d0cb507c464d96968e725cbb44e19d79 (diff)
Hard-code the templateName's extension
Signed-off-by: Christopher Teutsch <chris@heychris.eu>
Diffstat (limited to 'src/helpers/files.js')
-rw-r--r--src/helpers/files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/files.js b/src/helpers/files.js
index 98b1c4693..e6f722971 100644
--- a/src/helpers/files.js
+++ b/src/helpers/files.js
@@ -85,7 +85,7 @@ const registerFileCreate = () => {
menu.addMenuEntry({
id: 'file',
displayName: t('text', 'New text document'),
- templateName: t('text', 'New text document.md'),
+ templateName: t('text', 'New text document') + '.md',
iconClass: 'icon-filetype-text',
fileType: 'file',
actionHandler: function(name) {