diff --git a/src/views/RichWorkspace.vue b/src/views/RichWorkspace.vue index 84b51be19c2..5b450b46bd5 100644 --- a/src/views/RichWorkspace.vue +++ b/src/views/RichWorkspace.vue @@ -220,7 +220,7 @@ export default { this.$el.find('[data-action="rich-workspace-init"]').on('click', function(event) { window.FileList .createFile('Readme.md', { scrollTo: false, animate: false }) - .then((status, data) => { + .then(() => { menu.removeMenuEntry('rich-workspace-init') return self.getFileInfo() }) @@ -235,7 +235,7 @@ export default { templateName: t('text', 'Readme') + '.' + loadState('text', 'default_file_extension'), iconClass: 'icon-filetype-text', fileType: 'file', - actionHandler(name) { + actionHandler() { return window.FileList .createFile('Readme.md', { scrollTo: false, animate: false }) .then(() => {