summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/components/Operations/ConvertToPdf.vue
blob: 5fa1676e0928953da8390147191233a2078fb54f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
	<Multiselect v-model="value" :options="options" track-by="id"
		label="text" @input="$emit('input', value.id)" />
</template>

<script>
import { Multiselect } from 'nextcloud-vue'

const pdfConvertOptions = [
	{
		id: 'keep;preserve',
		text: t('workflow_pdf_converter', 'Keep original, preserve existing PDFs')
	},
	{
		id: 'keep;overwrite',
		text: t('workflow_pdf_converter', 'Keep original, overwrite existing PDF')
	},
	{
		id: 'delete;preserve',
		text: t('workflow_pdf_converter', 'Delete original, preserve existing PDFs')
	},
	{
		id: 'delete;overwrite',
		text: t('workflow_pdf_converter', 'Delete original, overwrite existing PDF')
	}
]
export default {
	name: 'ConvertToPdf',
	components: { Multiselect },
	data() {
		return {
			options: pdfConvertOptions,
			value: pdfConvertOptions[0]
		}
	}
}
</script>

<style scoped>
	.multiselect {
		width: 100%;
		max-width: 300px;
		margin: auto;
		text-align: center;
	}
</style>