1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-24 16:36:46 +00:00
bramw_baserow/web-frontend/modules/database/components/application/ApplicationContext.vue
2024-07-25 17:05:43 +00:00

47 lines
1.0 KiB
Vue

<template>
<ApplicationContext
ref="context"
:application="application"
:workspace="workspace"
>
<template #additional-context-items>
<li class="context__menu-item">
<nuxt-link
:to="{
name: 'database-api-docs-detail',
params: {
databaseId: application.id,
},
}"
class="context__menu-item-link"
>
<i class="context__menu-item-icon iconoir-book"></i>
{{ $t('sidebar.viewAPI') }}
</nuxt-link>
</li>
</template>
</ApplicationContext>
</template>
<script>
import ApplicationContext from '@baserow/modules/core/components/application/ApplicationContext.vue'
import applicationContext from '@baserow/modules/core/mixins/applicationContext'
export default {
components: {
ApplicationContext,
},
mixins: [applicationContext],
props: {
application: {
type: Object,
required: true,
},
workspace: {
type: Object,
required: true,
},
},
}
</script>