mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-17 14:22:02 +00:00
Resolve "Rename group to workspace in frontend code."
This commit is contained in:
parent
8e66a18f56
commit
0426ead072
230 changed files with 2504 additions and 2221 deletions
web-frontend/modules/database/components/docs
|
@ -0,0 +1,56 @@
|
|||
<template>
|
||||
<div v-if="databases.length > 0">
|
||||
<div class="select-application__group">{{ workspace.name }}</div>
|
||||
<ul class="select-application__list">
|
||||
<li v-for="database in databases" :key="database.id">
|
||||
<nuxt-link
|
||||
:to="{
|
||||
name: 'database-api-docs-detail',
|
||||
params: {
|
||||
databaseId: database.id,
|
||||
},
|
||||
}"
|
||||
class="select-application__link"
|
||||
:class="{ active: selected === database.id }"
|
||||
>
|
||||
<div class="select-application__icon">
|
||||
<i class="fas" :class="'fa-' + database._.type.iconClass"></i>
|
||||
</div>
|
||||
<div class="select-application__name">
|
||||
{{ database.name }}
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { DatabaseApplicationType } from '@baserow/modules/database/applicationTypes'
|
||||
|
||||
export default {
|
||||
name: 'APIDocsSelectDatabaseWorkspace',
|
||||
props: {
|
||||
workspace: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
selected: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: -1,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
databases() {
|
||||
const applications = this.$store.getters['application/getAllOfWorkspace'](
|
||||
this.workspace
|
||||
)
|
||||
const databaseType = DatabaseApplicationType.getType()
|
||||
return applications.filter(
|
||||
(application) => application.type === databaseType
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue