From 25e2ace825447997473d144d4052080a3004a063 Mon Sep 17 00:00:00 2001 From: samaradel Date: Mon, 30 Dec 2024 18:36:39 +0200 Subject: [PATCH] Generate worker name after worker deployment for caprover --- .../playground/src/components/manage_caprover_worker_dialog.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/playground/src/components/manage_caprover_worker_dialog.vue b/packages/playground/src/components/manage_caprover_worker_dialog.vue index b7e60070a0..20afd9c74a 100644 --- a/packages/playground/src/components/manage_caprover_worker_dialog.vue +++ b/packages/playground/src/components/manage_caprover_worker_dialog.vue @@ -159,6 +159,8 @@ async function deploy(layout: any) { layout.setStatus("success", `Successfully add a new worker to Caprover('${props.master.name}') Instance.`); } catch (e) { layout.setStatus("failed", normalizeError(e, "Failed to deploy a caprover worker.")); + } finally { + worker.value = createWorker(); } }