Skip to content

Commit

Permalink
feat: Edit Nodes Properties - MEED-6841 - Meeds-io/MIPs#137 (#162)
Browse files Browse the repository at this point in the history
This PR enables displaying the page name in the page suggester when edit mode.
  • Loading branch information
SaraBoutej committed Aug 24, 2024
1 parent 2e19397 commit f63403d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,10 @@ export default {
this.pageToEdit = page;
this.elementType = page.state?.type === 'LINK' && 'LINK' || 'existingPage';
this.link = page?.state?.link;
this.$root.$emit('set-selected-page', page.state);
this.$nextTick()
.then(() => {
this.$root.$emit('set-selected-page', page);
});
});
} else {
this.elementType = 'Group';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,11 @@ export default {
}, this.endTypingKeywordTimeout);
},
emitSelectedValue(value) {
this.selectedPage = value;
this.pages.push(this.selectedPage);
this.selectedPage = {
pageRef: `${ value?.key?.site?.typeName}::${ value?.key?.site?.name}::${value?.key?.name}`,
displayName: value?.state?.displayName || value?.key.name,
};
this.pages.push(value);
},
}
};
Expand Down

0 comments on commit f63403d

Please sign in to comment.