Skip to content

Commit

Permalink
Fix workers and domains dialogs (#3602)
Browse files Browse the repository at this point in the history
* Fix workers and domains dialogs

* Set unique check for dialogs trigger
  • Loading branch information
samaradel authored Nov 11, 2024
1 parent 1ea3613 commit 06a9b97
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/playground/src/weblets/tf_deployment_list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -375,20 +375,24 @@
icon="mdi-cube-outline"
:disabled="item.fromAnotherClient"
tooltip="Manage Workers"
@click="dialog = item.name"
@click="dialog = `W${item.name}`"
/>

<IconActionBtn
icon="mdi-cog"
tooltip="Manage Domains"
:disabled="item.fromAnotherClient"
@click="dialog = item.masters[0].name"
@click="dialog = `GW${item.masters[0].name}`"
/>

<ManageGatewayDialog v-if="dialog === item.masters[0].name" :k8s="item" @close="dialog = undefined" />
<ManageGatewayDialog
v-if="dialog === `GW${item.masters[0].name}`"
:k8s="item"
@close="dialog = undefined"
/>

<ManageK8SWorkerDialog
v-if="dialog === item.name"
v-if="dialog === `W${item.name}`"
:data="item"
@close="dialog = undefined"
@update:k8s="item.workers = $event.workers"
Expand Down

0 comments on commit 06a9b97

Please sign in to comment.