Skip to content

Commit 49ed85f

Browse files
committed
Enter key on forms for deploy image and process template
1 parent 6e95ce2 commit 49ed85f

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

app/views/create.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727

2828
<uib-tab active="selectedTab.deployImage">
2929
<uib-tab-heading>Deploy Image</uib-tab-heading>
30-
<deploy-image project="project" context="context"></deploy-image>
30+
<form><!-- wrapping form element is necessary for the enter key to trigger the submit button -->
31+
<deploy-image project="project" context="context"></deploy-image>
32+
</form>
3133
</uib-tab>
3234

3335
<uib-tab active="selectedTab.fromFile">

app/views/newfromtemplate.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ <h2>Images</h2>
3939
</li>
4040
</ul>
4141
</div>
42-
<process-template
43-
project="project"
44-
template="template"
45-
prefill-parameters="prefillParameters">
46-
</process-template>
42+
<form><!-- wrapping form element is necessary for the enter key to trigger the submit button -->
43+
<process-template
44+
project="project"
45+
template="template"
46+
prefill-parameters="prefillParameters">
47+
</process-template>
48+
</form>
4749
</div>
4850
</div>
4951
</div><!-- /col-* -->

dist/scripts/templates.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4774,7 +4774,9 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
47744774
"</uib-tab>\n" +
47754775
"<uib-tab active=\"selectedTab.deployImage\">\n" +
47764776
"<uib-tab-heading>Deploy Image</uib-tab-heading>\n" +
4777+
"<form>\n" +
47774778
"<deploy-image project=\"project\" context=\"context\"></deploy-image>\n" +
4779+
"</form>\n" +
47784780
"</uib-tab>\n" +
47794781
"<uib-tab active=\"selectedTab.fromFile\">\n" +
47804782
"<uib-tab-heading>Import YAML / JSON</uib-tab-heading>\n" +
@@ -11147,8 +11149,10 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1114711149
"</li>\n" +
1114811150
"</ul>\n" +
1114911151
"</div>\n" +
11152+
"<form>\n" +
1115011153
"<process-template project=\"project\" template=\"template\" prefill-parameters=\"prefillParameters\">\n" +
1115111154
"</process-template>\n" +
11155+
"</form>\n" +
1115211156
"</div>\n" +
1115311157
"</div>\n" +
1115411158
"</div>\n" +

0 commit comments

Comments
 (0)