mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-02 15:30:06 +00:00
Made fixes/updates during pre-release review
- Fixed page editor default focus not working as expected due to misnamed attribute. - Added owned_by to relevant areas of the API including the docs. - Made book relation on page accessible even if deleted since it could cause an issue on views, such as audit trail, when the relation is accessed when the book is deleted.
This commit is contained in:
parent
8bb6394b47
commit
14ea6c9de3
27 changed files with 71 additions and 18 deletions
resources/js/components
|
@ -12,7 +12,7 @@ class PageEditor {
|
|||
this.editorType = this.$opts.editorType;
|
||||
this.pageId = Number(this.$opts.pageId);
|
||||
this.isNewDraft = this.$opts.pageNewDraft === 'true';
|
||||
this.hasDefaultTitle = this.$opts.isDefaultTitle || false;
|
||||
this.hasDefaultTitle = this.$opts.hasDefaultTitle || false;
|
||||
|
||||
// Elements
|
||||
this.container = this.$el;
|
||||
|
@ -74,6 +74,7 @@ class PageEditor {
|
|||
}
|
||||
|
||||
setInitialFocus() {
|
||||
console.log({'HAS': this.hasDefaultTitle});
|
||||
if (this.hasDefaultTitle) {
|
||||
return this.titleElem.select();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue