Skip to content
Snippets Groups Projects
Commit 01e0d3db authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Remove project column from repository list

parent 57746894
No related branches found
No related tags found
1 merge request!1309Remove project column from repository list
......@@ -19,7 +19,6 @@
<thead>
<tr>
<th>URL</th>
<th>Project</th>
<th v-if="hasFeature('workers')">Workers</th>
<th>Users</th>
<th v-if="isVerified">Actions</th>
......
......@@ -15,23 +15,9 @@
</div>
</div>
</td>
<td>
<template v-if="!repoCorpora.length">
<template v-if="isIIIF">
<i class="notification is-paddingless is-warning">No project available</i>
</template>
<template v-else></template>
</template>
<div v-else v-for="corpus in repoCorpora" :key="corpus.id">
<router-link :to="{ name: 'navigation', params: { corpusId: corpus.id } }">{{ corpus.name }}</router-link>
</div>
</td>
<td>
<template v-if="!repo.workers.length">
<template v-if="isWorker">
<i class="notification is-paddingless is-info">No worker available</i>
</template>
<template v-else></template>
<i class="notification is-paddingless is-info">No worker available</i>
</template>
<div v-else v-for="worker in repo.workers" :key="worker.id">
<router-link :to="{ name: 'worker-manage', params: { workerId: worker.id } }">
......@@ -62,11 +48,7 @@
<script>
import { mapGetters } from 'vuex'
import { corporaMixin } from '~/js/mixins'
export default {
mixins: [
corporaMixin
],
props: {
repo: {
type: Object,
......@@ -74,10 +56,7 @@ export default {
}
},
computed: {
...mapGetters('auth', ['isVerified', 'hasFeature']),
repoCorpora () {
return Object.values(this.corpora).filter(c => this.repo.corpora.includes(c.id))
}
...mapGetters('auth', ['isVerified', 'hasFeature'])
}
}
</script>
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