Skip to content
Snippets Groups Projects
Unverified Commit 619bc47c authored by Martin Weise's avatar Martin Weise
Browse files

Added the license and database name

parent efd7ca5f
No related branches found
No related tags found
1 merge request!81New stable release
......@@ -21,6 +21,32 @@
</v-card-title>
<v-card-text>
<v-list dense>
<v-list-item>
<v-list-item-icon>
<v-icon :color="database_visibility ? 'success' : 'error'">mdi-database-outline</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>
Database Visibility
</v-list-item-title>
<v-list-item-content>
<span v-if="database_visibility">Public</span>
<span v-if="!database_visibility">Private</span>
</v-list-item-content>
<v-list-item-title class="mt-2">
Database Name
</v-list-item-title>
<v-list-item-content>
{{ database.name }}
</v-list-item-content>
<v-list-item-title v-if="database.license" class="mt-2">
Database License
</v-list-item-title>
<v-list-item-content v-if="database.license">
<a :href="database.license.uri">{{ database.license.identifier }}</a>
</v-list-item-content>
</v-list-item-content>
</v-list-item>
<v-list-item v-if="identifier.id">
<v-list-item-icon>
<v-icon>mdi-lock-clock</v-icon>
......@@ -193,6 +219,10 @@ export default {
publisher: null,
creator: {
username: null
},
license: {
identifier: null,
uri: null
}
},
persistQueryExists: false,
......@@ -234,6 +264,9 @@ export default {
}
return this.database.creator.username === this.username
},
database_visibility () {
return this.database.is_public
},
result_everyone () {
return this.database.is_public || this.identifier.visibility === 'EVERYONE'
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment