diff options
Diffstat (limited to 'apps/settings/src/components/AppStoreSidebar/AppDeployOptionsModal.vue')
-rw-r--r-- | apps/settings/src/components/AppStoreSidebar/AppDeployOptionsModal.vue | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/settings/src/components/AppStoreSidebar/AppDeployOptionsModal.vue b/apps/settings/src/components/AppStoreSidebar/AppDeployOptionsModal.vue index 04c49827b02..e04d8884b96 100644 --- a/apps/settings/src/components/AppStoreSidebar/AppDeployOptionsModal.vue +++ b/apps/settings/src/components/AppStoreSidebar/AppDeployOptionsModal.vue @@ -187,6 +187,10 @@ export default { type: Boolean, required: true, }, + showDaemonSelectionModal: { + type: Function, + required: true, + }, }, setup(props) { // for AppManagement mixin @@ -277,8 +281,15 @@ export default { this.configuredDeployOptions = null }) }, - submitDeployOptions() { - this.enable(this.app.id, this.deployOptions) + async submitDeployOptions() { + await this.appApiStore.fetchDockerDaemons() + if (this.appApiStore.dockerDaemons.length === 1 && this.app.needsDownload) { + this.enable(this.app.id, this.appApiStore.dockerDaemons[0], this.deployOptions) + } else if (this.app.needsDownload) { + this.showDaemonSelectionModal(this.deployOptions) + } else { + this.enable(this.app.id, this.app.daemon, this.deployOptions) + } this.$emit('update:show', false) }, }, |