From 37532f76d533b38ceb3ca6ecb3de8ea6fd92f532 Mon Sep 17 00:00:00 2001 From: Luka Trovic Date: Thu, 27 Oct 2022 20:47:45 +0200 Subject: [PATCH] refacotr: code Signed-off-by: Luka Trovic --- src/views/RichWorkspace.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(() => {