aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/components/AppAPI/DaemonSelectionDialog.vue
blob: 696c77d19ce09b7f9966abe5293f75047b94178e (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
<!--
  - SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
  - SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
	<NcDialog :open="show"
		:name="t('settings', 'Choose Deploy Daemon for {appName}', {appName: app.name })"
		size="normal"
		@update:open="closeModal">
		<DaemonSelectionList :app="app"
			:deploy-options="deployOptions"
			@close="closeModal" />
	</NcDialog>
</template>

<script setup>
import { defineProps, defineEmits } from 'vue'
import NcDialog from '@nextcloud/vue/components/NcDialog'
import DaemonSelectionList from './DaemonSelectionList.vue'

defineProps({
	show: {
		type: Boolean,
		required: true,
	},
	app: {
		type: Object,
		required: true,
	},
	deployOptions: {
		type: Object,
		required: false,
		default: () => ({}),
	},
})

const emit = defineEmits(['update:show'])
const closeModal = () => {
	emit('update:show', false)
}
</script>