Skip to content

Commit

Permalink
additional UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akolson committed Dec 10, 2024
1 parent 7574c06 commit c6e3a0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<KCard
:title="node.title"
:headingLevel="1"
:headingLevel="2"
thumbnailScaleType="contain"
thumbnailDisplay="small"
thumbnailAlign="right"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
copyNode: null,
languageFromChannelList: null,
showSavedSearches: false,
importDestination: '',
importDestinationAncestors: [],
showAboutRecommendations: false,
recommendations: [],
otherRecommendations: [],
Expand Down Expand Up @@ -339,6 +339,9 @@
topic: this.importDestination,
});
},
importDestination() {
return this.importDestinationAncestors.slice(-1)[0]?.title || '';
},
},
beforeRouteEnter(to, from, next) {
next(vm => {
Expand All @@ -360,15 +363,15 @@
},
mounted() {
this.searchTerm = this.$route.params.searchTerm || '';
this.loadRecommendations();
this.loadContentNode(this.$route.params.destNodeId).then(node => {
this.importDestination = node?.title || '';
this.loadAncestors({ id: this.$route.params.destNodeId }).then(ancestors => {
this.importDestinationAncestors = ancestors;
this.loadRecommendations();
});
},
methods: {
...mapActions('channel', ['loadChannel']),
...mapActions('clipboard', ['copy']),
...mapActions('contentNode', ['loadContentNode', 'loadPublicContentNode']),
...mapActions('contentNode', ['loadAncestors', 'loadPublicContentNode']),
...mapActions('importFromChannels', ['fetchResourceSearchResults']),
...mapMutations('importFromChannels', {
selectNodes: 'SELECT_NODES',
Expand Down

0 comments on commit c6e3a0c

Please sign in to comment.