Skip to content

Commit

Permalink
Always open new pages and template pages in edit mode
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Jan 25, 2023
1 parent ebd21ee commit 02a695c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ export default {
},
initEditMode() {
this.editMode = !!this.currentCollective.pageMode
// Open in edit mode when pageMode is set, for template pages and for new pages
this.editMode = !!this.currentCollective.pageMode || this.isTemplatePage || !!this.loading('newPage')
},
startEdit() {
Expand Down
1 change: 0 additions & 1 deletion src/components/Page/TextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ export default {
async getPageContent() {
this.pageContent = await this.fetchPageContent(this.currentPageDavUrl)
if (!this.pageContent) {
console.debug('emit start-edit in TextEditor.vue')
this.$emit('start-edit')
}
},
Expand Down

0 comments on commit 02a695c

Please sign in to comment.