1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-22 07:42:36 +00:00
bramw_baserow/web-frontend/modules/dashboard/components/form/DashboardForm.vue
2024-10-07 07:06:57 +00:00

43 lines
895 B
Vue

<template>
<ApplicationForm
:default-values="{ name: defaultName }"
@submitted="$emit('submitted', $event)"
>
<div class="actions actions--right">
<Button
type="primary"
size="large"
:loading="loading"
:disabled="loading"
>
{{ $t('action.add') }}
{{ dashboardApplicationType.getName() | lowercase }}
</Button>
</div>
</ApplicationForm>
</template>
<script>
import ApplicationForm from '@baserow/modules/core/components/application/ApplicationForm'
export default {
name: 'DashboardForm',
components: { ApplicationForm },
props: {
defaultName: {
type: String,
required: true,
},
loading: {
type: Boolean,
required: true,
},
},
computed: {
dashboardApplicationType() {
return this.$registry.get('application', 'dashboard')
},
},
}
</script>