Skip to content

Commit 489ba10

Browse files
varshavaradarajanbdpiprava
authored andcommitted
Specify the default selection for radio button based on PodSpecType and SpecifiedUsingPodCOnfiguration.
* This is to maintain backwards compatibality with existing profile configs wrt the view.
1 parent dea0605 commit 489ba10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/profile.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<div class="form_error form-error row" ng-class="{'is-visible': GOINPUTNAME[PodSpecType].$error.server}" ng-show="GOINPUTNAME[PodSpecType].$error.server" style="padding-top: 10px">{{GOINPUTNAME[PodSpecType].$error.server}}</div>
103103
<div class="form_item_block row" style="padding-top: 10px">
104104
<div class="columns small-9 medium-10 larger-10"
105-
ng-init="PodSpecType = PodSpecType || 'false'">
105+
ng-init="PodSpecType = PodSpecType || (SpecifiedUsingPodConfiguration == 'true' && 'properties') || 'yaml'">
106106
<input type="radio" ng-model="PodSpecType" value="properties"
107107
id="properties"/>
108108
<label for="properties">Config Properties</label>

0 commit comments

Comments
 (0)