Skip to content

Commit

Permalink
update toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
sofyenne committed Oct 9, 2024
1 parent bb017f5 commit f0a745c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ CKEDITOR.editorConfig = function (config) {
'Table',
'EmbedSemantic',
'CodeSnippet',
'attachFile',
'InsertOptions'
];
if (webPageNote) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,12 @@ export default {
},
computed: {
extensionParams() {
console.log(this.note);
return {
spaceId: this.getURLQueryParam('spaceId'),
entityId: this.note.draftPage && this.note?.id || this.note.latestVersionId,
entityId: this.note.id && this.note.id !== 0 && this.note?.draftPage ? this.note.id : this.note.latestVersionId,
entityType: this.note.draftPage && 'WIKI_DRAFT_PAGES' || 'WIKI_PAGE_VERSIONS',
lang: this.note.lang,
isEmptyNoteTranslation: this.note.lang != null && !this.note?.title && !this.note?.content
isEmptyNoteTranslation: (!!this.note.lang || this.note.lang != null) && !this.note?.title && !this.note?.content
};
},
hasFeaturedImage() {
Expand Down

0 comments on commit f0a745c

Please sign in to comment.