Skip to content

Commit 2041c75

Browse files
author
OpenShift Bot
authored
Merge pull request #2110 from spadgett/disable-click-review-step-number
Merged by openshift-bot
2 parents 7c25d66 + 5472dc7 commit 2041c75

File tree

7 files changed

+21
-7
lines changed

7 files changed

+21
-7
lines changed

app/scripts/directives/bindService.js

+3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
label: 'Binding',
124124
view: 'views/directives/bind-service/bind-service-form.html',
125125
valid: true,
126+
allowClickNav: true,
126127
onShow: showBind
127128
};
128129

@@ -131,6 +132,7 @@
131132
label: 'Parameters',
132133
view: 'views/directives/bind-service/bind-parameters.html',
133134
hidden: true,
135+
allowClickNav: true,
134136
onShow: showParameters
135137
};
136138

@@ -139,6 +141,7 @@
139141
label: 'Results',
140142
view: 'views/directives/bind-service/results.html',
141143
valid: true,
144+
allowClickNav: false,
142145
onShow: showResults
143146
};
144147

app/scripts/directives/processTemplateDialog.js

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
hidden: ctrl.useProjectTemplate !== true,
4242
allowed: true,
4343
valid: false,
44+
allowClickNav: true,
4445
onShow: showSelect
4546
};
4647

@@ -52,6 +53,7 @@
5253
// is displayed and the template has required fields.
5354
valid: false,
5455
allowed: true,
56+
allowClickNav: true,
5557
onShow: showConfig
5658
};
5759

@@ -62,6 +64,7 @@
6264
valid: true,
6365
allowed: false,
6466
prevEnabled: false,
67+
allowClickNav: false,
6568
onShow: showResults
6669
};
6770

app/views/directives/bind-service.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
on-finish="ctrl.closeWizard()"
99
on-cancel="ctrl.closeWizard()"
1010
wizard-done="ctrl.wizardComplete">
11-
<pf-wizard-step ng-repeat="step in ctrl.steps track by $index"
11+
<pf-wizard-step ng-repeat="step in ctrl.steps track by step.id"
1212
step-title="{{step.label}}"
1313
next-enabled="step.valid"
1414
on-show="step.onShow"
1515
step-id="{{step.id}}"
16-
step-priority="{{$index}}">
16+
step-priority="{{$index}}"
17+
allow-click-nav="step.allowClickNav">
1718
<div class="wizard-pf-main-inner-shadow-covers">
1819
<div class="bind-service-config">
1920
<div ng-include="step.view" class="wizard-pf-main-form-contents"></div>

app/views/directives/process-template-dialog.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<pf-wizard-step ng-repeat="step in $ctrl.steps track by step.id"
1616
step-title="{{step.label}}"
1717
wz-disabled="{{step.hidden}}"
18-
allow-click-nav="step.allowed"
18+
allow-click-nav="step.allowClickNav"
1919
next-enabled="step.valid"
2020
prev-enabled="step.prevEnabled"
2121
on-show="step.onShow"

app/views/directives/unbind-service.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
wizard-done="ctrl.wizardComplete"
1212
class="pf-wizard-no-back">
1313
<pf-wizard-step
14-
ng-repeat="step in ctrl.steps track by $index"
14+
ng-repeat="step in ctrl.steps track by step.id"
1515
step-title="{{step.label}}"
1616
next-enabled="step.valid"
17+
allow-click-nav="false"
1718
on-show="step.onShow"
1819
step-id="{{step.id}}"
1920
step-priority="{{$index}}">

dist/scripts/scripts.js

+6
Original file line numberDiff line numberDiff line change
@@ -12601,6 +12601,7 @@ id: "bindForm",
1260112601
label: "Binding",
1260212602
view: "views/directives/bind-service/bind-service-form.html",
1260312603
valid: !0,
12604+
allowClickNav: !0,
1260412605
onShow: function() {
1260512606
d.nextTitle = i.hidden ? "Bind" : "Next >", d.podPresets && !c && (c = e.$watch("ctrl.selectionForm.$valid", function(e) {
1260612607
o.valid = e;
@@ -12611,6 +12612,7 @@ id: "bindParameters",
1261112612
label: "Parameters",
1261212613
view: "views/directives/bind-service/bind-parameters.html",
1261312614
hidden: !0,
12615+
allowClickNav: !0,
1261412616
onShow: function() {
1261512617
d.nextTitle = "Bind", l || (l = e.$watch("ctrl.parametersForm.$valid", function(e) {
1261612618
i.valid = e;
@@ -12621,6 +12623,7 @@ id: "results",
1262112623
label: "Results",
1262212624
view: "views/directives/bind-service/results.html",
1262312625
valid: !0,
12626+
allowClickNav: !1,
1262412627
onShow: function() {
1262512628
c && (c(), c = void 0), l && (l(), l = void 0), d.nextTitle = "Close", d.wizardComplete = !0, d.bindService();
1262612629
}
@@ -12905,6 +12908,7 @@ view: "views/directives/process-template-dialog/process-template-select.html",
1290512908
hidden: !0 !== v.useProjectTemplate,
1290612909
allowed: !0,
1290712910
valid: !1,
12911+
allowClickNav: !0,
1290812912
onShow: function() {
1290912913
v.selectStep.selected = !0, v.configStep.selected = !1, v.resultsStep.selected = !1, v.nextTitle = "Next >", u(), g();
1291012914
}
@@ -12914,6 +12918,7 @@ label: "Configuration",
1291412918
view: "views/directives/process-template-dialog/process-template-config.html",
1291512919
valid: !1,
1291612920
allowed: !0,
12921+
allowClickNav: !0,
1291712922
onShow: function() {
1291812923
v.selectStep.selected = !1, v.configStep.selected = !0, v.resultsStep.selected = !1, v.nextTitle = "Create", v.resultsStep.allowed = v.configStep.valid, h = e.$watch("$ctrl.form.$valid", function(e) {
1291912924
v.configStep.valid = e && v.selectedProject, v.resultsStep.allowed = e;
@@ -12926,6 +12931,7 @@ view: "views/directives/process-template-dialog/process-template-results.html",
1292612931
valid: !0,
1292712932
allowed: !1,
1292812933
prevEnabled: !1,
12934+
allowClickNav: !1,
1292912935
onShow: function() {
1293012936
v.selectStep.selected = !1, v.configStep.selected = !1, v.resultsStep.selected = !0, v.nextTitle = "Close", u(), v.wizardDone = !0;
1293112937
}

dist/scripts/templates.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5826,7 +5826,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
58265826
$templateCache.put('views/directives/bind-service.html',
58275827
"<div class=\"bind-service-wizard\">\n" +
58285828
"<pf-wizard hide-header=\"true\" hide-sidebar=\"true\" step-class=\"bind-service-wizard-step\" wizard-ready=\"ctrl.wizardReady\" next-title=\"ctrl.nextTitle\" on-finish=\"ctrl.closeWizard()\" on-cancel=\"ctrl.closeWizard()\" wizard-done=\"ctrl.wizardComplete\">\n" +
5829-
"<pf-wizard-step ng-repeat=\"step in ctrl.steps track by $index\" step-title=\"{{step.label}}\" next-enabled=\"step.valid\" on-show=\"step.onShow\" step-id=\"{{step.id}}\" step-priority=\"{{$index}}\">\n" +
5829+
"<pf-wizard-step ng-repeat=\"step in ctrl.steps track by step.id\" step-title=\"{{step.label}}\" next-enabled=\"step.valid\" on-show=\"step.onShow\" step-id=\"{{step.id}}\" step-priority=\"{{$index}}\" allow-click-nav=\"step.allowClickNav\">\n" +
58305830
"<div class=\"wizard-pf-main-inner-shadow-covers\">\n" +
58315831
"<div class=\"bind-service-config\">\n" +
58325832
"<div ng-include=\"step.view\" class=\"wizard-pf-main-form-contents\"></div>\n" +
@@ -8793,7 +8793,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
87938793
$templateCache.put('views/directives/process-template-dialog.html',
87948794
"<div class=\"order-service\">\n" +
87958795
"<pf-wizard hide-header=\"true\" hide-sidebar=\"true\" hide-back-button=\"!$ctrl.useProjectTemplate\" step-class=\"order-service-wizard-step\" wizard-ready=\"$ctrl.wizardReady\" next-title=\"$ctrl.nextTitle\" next-callback=\"$ctrl.next\" on-finish=\"$ctrl.close()\" on-cancel=\"$ctrl.close()\" wizard-done=\"$ctrl.wizardDone\" current-step=\"$ctrl.currentStep\" ng-class=\"{'pf-wizard-no-back': !$ctrl.useProjectTemplate}\">\n" +
8796-
"<pf-wizard-step ng-repeat=\"step in $ctrl.steps track by step.id\" step-title=\"{{step.label}}\" wz-disabled=\"{{step.hidden}}\" allow-click-nav=\"step.allowed\" next-enabled=\"step.valid\" prev-enabled=\"step.prevEnabled\" on-show=\"step.onShow\" step-id=\"{{step.id}}\" step-priority=\"{{$index}}\">\n" +
8796+
"<pf-wizard-step ng-repeat=\"step in $ctrl.steps track by step.id\" step-title=\"{{step.label}}\" wz-disabled=\"{{step.hidden}}\" allow-click-nav=\"step.allowClickNav\" next-enabled=\"step.valid\" prev-enabled=\"step.prevEnabled\" on-show=\"step.onShow\" step-id=\"{{step.id}}\" step-priority=\"{{$index}}\">\n" +
87978797
"<div class=\"wizard-pf-main-inner-shadow-covers\">\n" +
87988798
"<div class=\"order-service-details\" ng-if=\"!$ctrl.selectStep.selected\">\n" +
87998799
"<div class=\"order-service-details-top\">\n" +
@@ -9146,7 +9146,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
91469146
$templateCache.put('views/directives/unbind-service.html',
91479147
"<div class=\"bind-service-wizard unbind-service\">\n" +
91489148
"<pf-wizard hide-header=\"true\" hide-sidebar=\"true\" hide-back-button=\"true\" step-class=\"bind-service-wizard-step\" wizard-ready=\"ctrl.wizardReady\" next-title=\"ctrl.nextTitle\" on-finish=\"ctrl.closeWizard()\" on-cancel=\"ctrl.closeWizard()\" wizard-done=\"ctrl.wizardComplete\" class=\"pf-wizard-no-back\">\n" +
9149-
"<pf-wizard-step ng-repeat=\"step in ctrl.steps track by $index\" step-title=\"{{step.label}}\" next-enabled=\"step.valid\" on-show=\"step.onShow\" step-id=\"{{step.id}}\" step-priority=\"{{$index}}\">\n" +
9149+
"<pf-wizard-step ng-repeat=\"step in ctrl.steps track by step.id\" step-title=\"{{step.label}}\" next-enabled=\"step.valid\" allow-click-nav=\"false\" on-show=\"step.onShow\" step-id=\"{{step.id}}\" step-priority=\"{{$index}}\">\n" +
91509150
"<div class=\"wizard-pf-main-inner-shadow-covers\">\n" +
91519151
"<div class=\"bind-service-config\">\n" +
91529152
"<div ng-include=\"step.view\" class=\"wizard-pf-main-form-contents\"></div>\n" +

0 commit comments

Comments
 (0)