From 901e287b46a3ce729f4acb21b7577025942843b8 Mon Sep 17 00:00:00 2001 From: Jordan Jensen Date: Wed, 13 Dec 2023 13:48:42 -0800 Subject: [PATCH] Show current config settings existing deployment --- .../ExistingDeploymentDestinationPage.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/web/src/views/existing-deployment-destination/ExistingDeploymentDestinationPage.vue b/web/src/views/existing-deployment-destination/ExistingDeploymentDestinationPage.vue index 48a40caa3..adbb9fe85 100644 --- a/web/src/views/existing-deployment-destination/ExistingDeploymentDestinationPage.vue +++ b/web/src/views/existing-deployment-destination/ExistingDeploymentDestinationPage.vue @@ -14,7 +14,8 @@ :subtitle="deployment.configurationName" > (); +const configurations = ref>([]); + const deploymentName = computed(():string => { // route param can be either string | string[] if (Array.isArray(route.params.name)) { @@ -70,6 +73,17 @@ const getDeployment = async() => { } }; +const defaultConfig = computed(() => { + return configurations.value.find((c) => c.configurationName === 'default'); +}); + +async function getConfigurations() { + const response = await api.configurations.getAll(); + configurations.value = response.data; +} + +getConfigurations(); + watch( () => route.params, () => {