Skip to content

Commit

Permalink
refacotr: code
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <[email protected]>
  • Loading branch information
luka-nextcloud committed Oct 27, 2022
1 parent 4e5e435 commit 37532f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand All @@ -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(() => {
Expand Down

0 comments on commit 37532f7

Please sign in to comment.