Skip to content

Commit

Permalink
sentence segmentation option allowded only in the sample view
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Oct 28, 2024
1 parent d0f55e2 commit 08ebee0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/sentence/SentenceToolBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
</q-item-section>
</q-item>

<q-item v-if="isValidator" v-close-popup clickable @click="showSentSegmentationDial = true">
<q-item v-if="isValidator && canChangeSegmentation" v-close-popup clickable @click="showSentSegmentationDial = true">
<q-item-section avatar>
<q-avatar icon="content_cut" color="primary" text-color="white" />
</q-item-section>
Expand Down Expand Up @@ -274,6 +274,9 @@ export default defineComponent({
else {
return this.reactiveSentencesObj[this.openTabUser].state.metaJson.text;
}
},
canChangeSegmentation() {
return this.$route.params.samplename !== undefined // sentence segmentation option is available only in the sample view
}
},
methods: {
Expand Down

0 comments on commit 08ebee0

Please sign in to comment.