Skip to content

Commit

Permalink
Disable empty lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Jan 25, 2025
1 parent aaf1a0c commit 224855e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<ul>
<li>
<label>
<input v-model="resource" type="radio" value="vm">
<input v-model="resource" type="radio" value="vm"
<#if vmNames?size == 0>:disabled="true"</#if>label>
<span>{{ localize("VM") }}</span>
<select v-model="vmNameInput" :disabled="resource !== 'vm'">
<#list vmNames as name>
Expand All @@ -21,7 +22,8 @@
</li>
<li>
<label>
<input v-model="resource" type="radio" value="pool">
<input v-model="resource" type="radio" value="pool"
<#if poolNames?size == 0>:disabled="true"</#if>>
<span>{{ localize("Pool") }}</span>
<select v-model="poolNameInput" :disabled="resource !== 'pool'">
<#list poolNames as name>
Expand Down

0 comments on commit 224855e

Please sign in to comment.