Skip to content

Commit 523ebfe

Browse files
authored
Hide templates have moved on creation screen (#622)
1 parent bfe2c96 commit 523ebfe

File tree

1 file changed

+9
-3
lines changed
  • src/main/resources/com/microsoft/azure/vmagent/AzureVMCloud

1 file changed

+9
-3
lines changed

src/main/resources/com/microsoft/azure/vmagent/AzureVMCloud/config.jelly

+9-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@
5656
with="azureCredentialsId,maxVirtualMachinesLimit,deploymentTimeout,resourceGroupReferenceType,newResourceGroupName,existingResourceGroupName"/>
5757
</l:isAdmin>
5858

59-
<div class="alert alert-info">
60-
<a href="templates">${%Agent templates have moved}</a>.
61-
</div>
59+
<!--
60+
Don't show this link on Cloud creation page as it won't have the name in the path.
61+
There's nothing to differentiate that this is a new cloud or an existing cloud except mandatory values not being set.
62+
-->
63+
<j:if test="${it.azureCredentialsId != null}">
64+
<div class="alert alert-info">
65+
<a href="templates">${%Agent templates have moved}</a>.
66+
</div>
67+
</j:if>
6268
</j:jelly>

0 commit comments

Comments
 (0)