Skip to content
Snippets Groups Projects
Commit 9968068f authored by Valentin Rigal's avatar Valentin Rigal Committed by Erwan Rouchet
Browse files

Add a link back to project from dataset details

parent ef31edfd
No related branches found
No related tags found
1 merge request!1608Add a link back to project from dataset details
......@@ -12,8 +12,18 @@
Clone
</button>
<h1 class="title is-3">Dataset {{ dataset.name }} <StateTag :state="dataset.state" /></h1>
<p class="subtitle is-5"><ItemId :item-id="dataset.id" /></p>
<p class="subtitle is-5 mb-2"><ItemId :item-id="dataset.id" /></p>
<p v-if="corpus?.id" class="subtitle is-5">
In project
<router-link :to="{ name: 'corpus-update', params: { corpusId } }">
{{ truncateShort(corpus.name) }}
</router-link>
</p>
<hr />
<div class="field is-horizontal">
<label class="label mr-2">State</label>
<StateTag :state="dataset.state" />
</div>
<div class="field">
<label class="label">Description</label>
<div class="control">
......@@ -69,7 +79,7 @@
<script lang="ts">
import MarkdownIt from 'markdown-it'
import { corporaMixin } from '@/mixins.js'
import { corporaMixin, truncateMixin } from '@/mixins.js'
import { mapGetters as mapVuexGetters } from 'vuex'
import { mapState, mapActions } from 'pinia'
import { defineComponent, PropType } from 'vue'
......@@ -84,7 +94,8 @@ import ItemId from '@/components/ItemId.vue'
export default defineComponent({
mixins: [
corporaMixin
corporaMixin,
truncateMixin
],
components: {
ElementList,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment