mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-30 23:30:02 +00:00
50 lines
1 KiB
Vue
50 lines
1 KiB
Vue
![]() |
<template>
|
||
|
<ApplicationForm
|
||
|
:default-values="{ name: defaultName }"
|
||
|
:workspace="workspace"
|
||
|
:loading="loading"
|
||
|
@submitted="$emit('submitted', $event)"
|
||
|
>
|
||
|
<div class="actions actions--right">
|
||
|
<Button
|
||
|
type="primary"
|
||
|
size="large"
|
||
|
:loading="loading"
|
||
|
:disabled="loading"
|
||
|
>
|
||
|
{{ $t('action.add') }}
|
||
|
{{ automationApplicationType.getName() | lowercase }}
|
||
|
</Button>
|
||
|
</div>
|
||
|
</ApplicationForm>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import ApplicationForm from '@baserow/modules/core/components/application/ApplicationForm'
|
||
|
|
||
|
export default {
|
||
|
name: 'AutomationForm',
|
||
|
components: { ApplicationForm },
|
||
|
props: {
|
||
|
defaultName: {
|
||
|
type: String,
|
||
|
required: false,
|
||
|
default: '',
|
||
|
},
|
||
|
loading: {
|
||
|
type: Boolean,
|
||
|
required: true,
|
||
|
},
|
||
|
workspace: {
|
||
|
type: Object,
|
||
|
required: true,
|
||
|
},
|
||
|
},
|
||
|
computed: {
|
||
|
automationApplicationType() {
|
||
|
return this.$registry.get('application', 'automation')
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
</script>
|