mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 16:28:31 +00:00
* WIP * Remove formula conversion related changes * Move the file input click guard to formatted text component * Move format types into their own components * Use a shared markdown-it instance * Move the formatter into data explorer * Move minification logic into BaserowFormulaMinified * Renderer should own the root element * Ensure long choice names are truncated * Ensure line height doesn't grow for paragraphs * Add tests * Add changelog * Add specific tests for choice element
50 lines
1.3 KiB
Vue
50 lines
1.3 KiB
Vue
<template>
|
|
<form @submit.prevent="submit">
|
|
<FormGroup
|
|
small-label
|
|
:label="$t('notificationWorkflowActionForm.titleLabel')"
|
|
class="margin-bottom-2"
|
|
>
|
|
<InjectedFormulaInput
|
|
v-model="values.title"
|
|
:placeholder="$t('notificationWorkflowActionForm.titlePlaceholder')"
|
|
:allowed-formats="allowedFormats"
|
|
/>
|
|
</FormGroup>
|
|
<FormGroup
|
|
small-label
|
|
:label="$t('notificationWorkflowActionForm.descriptionLabel')"
|
|
class="margin-bottom-2"
|
|
>
|
|
<InjectedFormulaInput
|
|
v-model="values.description"
|
|
:placeholder="
|
|
$t('notificationWorkflowActionForm.descriptionPlaceholder')
|
|
"
|
|
:allowed-formats="allowedFormats"
|
|
/>
|
|
</FormGroup>
|
|
</form>
|
|
</template>
|
|
|
|
<script>
|
|
import form from '@baserow/modules/core/mixins/form'
|
|
import InjectedFormulaInput from '@baserow/modules/core/components/formula/InjectedFormulaInput'
|
|
import { BASEROW_FORMULA_FORMATS } from '@baserow/modules/core/formula/constants'
|
|
|
|
export default {
|
|
name: 'NotificationWorkflowActionForm',
|
|
components: { InjectedFormulaInput },
|
|
mixins: [form],
|
|
data() {
|
|
return {
|
|
values: {
|
|
title: {},
|
|
description: {},
|
|
},
|
|
allowedFormats: BASEROW_FORMULA_FORMATS,
|
|
}
|
|
},
|
|
}
|
|
</script>
|