Skip to content

Commit

Permalink
minor fix for sentence text in tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Sep 30, 2024
1 parent 115ba2b commit 30b2b3b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/sentence/SentenceToolBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<span class="text-grey" style="padding-left: 10px">{{ index + 1 }}</span>
<q-chip class="text-center" :color="$q.dark.isActive ? 'grey' : ''" dense> {{ sentenceData.sent_id }} </q-chip>&nbsp;&nbsp;&nbsp;
<q-input
v-model="sentenceData.sentence"
v-model="recentTreeText"
:style="openTabUser === '' ? 'width: 100%' : 'width: 65%'"
class="row items-center justify-center"
v-bind="$attrs"
Expand Down Expand Up @@ -265,6 +265,14 @@ export default defineComponent({
},
sampleName() {
return this.$route.params.samplename as string;
},
recentTreeText() {
if (this.openTabUser === '') {
return this.sentenceData.sentence;
}
else {
return this.reactiveSentencesObj[this.openTabUser].state.metaJson.text;
}
}
},
methods: {
Expand Down

0 comments on commit 30b2b3b

Please sign in to comment.