@@ -1348,67 +1348,66 @@ webpackJsonp([ 0, 1 ], [ function(e, t) {
1348
1348
"use strict" ;
1349
1349
t . __esModule = ! 0 ;
1350
1350
var n = r ( 1 ) , i = r ( 0 ) , a = function ( ) {
1351
- function e ( e , t , r , n , a , s , o , c , l , d ) {
1352
- var p = this ;
1351
+ function e ( e , t , r , n , a , s , o , c , l ) {
1352
+ var d = this ;
1353
1353
this . ctrl = this , this . watches = [ ] , this . clearValidityWatcher = function ( ) {
1354
- p . validityWatcher && ( p . validityWatcher ( ) , p . validityWatcher = void 0 ) , p . ctrl . reviewStep . allowed = ! 1 ;
1354
+ d . validityWatcher && ( d . validityWatcher ( ) , d . validityWatcher = void 0 ) , d . ctrl . reviewStep . allowed = ! 1 ;
1355
1355
} , this . showInfo = function ( ) {
1356
- p . clearValidityWatcher ( ) , p . ctrl . configPageShown = ! 1 , p . ctrl . nextTitle = "Next >" ;
1356
+ d . clearValidityWatcher ( ) , d . ctrl . configPageShown = ! 1 , d . ctrl . nextTitle = "Next >" ;
1357
1357
} , this . showPlan = function ( ) {
1358
- p . clearValidityWatcher ( ) , p . ctrl . configPageShown = ! 1 , p . ctrl . nextTitle = "Next >" ;
1358
+ d . clearValidityWatcher ( ) , d . ctrl . configPageShown = ! 1 , d . ctrl . nextTitle = "Next >" ;
1359
1359
} , this . showConfig = function ( ) {
1360
- p . clearValidityWatcher ( ) , p . ctrl . configPageShown = ! 0 , p . reviewStep . allowed = p . bindStep . hidden && p . configStep . valid ,
1361
- p . updateBindability ( ) , p . validityWatcher = p . $scope . $watch ( "$ctrl.forms.orderConfigureForm.$valid" , function ( e , t ) {
1362
- p . configStep . valid = e , p . bindStep . allowed = p . configStep . valid , p . reviewStep . allowed = p . bindStep . hidden && p . configStep . valid ;
1360
+ d . clearValidityWatcher ( ) , d . ctrl . configPageShown = ! 0 , d . reviewStep . allowed = d . bindStep . hidden && d . configStep . valid ,
1361
+ d . updateBindability ( ) , d . validityWatcher = d . $scope . $watch ( "$ctrl.forms.orderConfigureForm.$valid" , function ( e , t ) {
1362
+ d . configStep . valid = e , d . bindStep . allowed = d . configStep . valid , d . reviewStep . allowed = d . bindStep . hidden && d . configStep . valid ;
1363
1363
} ) ;
1364
1364
} , this . showBind = function ( ) {
1365
- p . clearValidityWatcher ( ) , p . ctrl . configPageShown = ! 1 , p . ctrl . nextTitle = p . bindParametersStep . hidden ? "Create" : "Next >" ,
1366
- p . reviewStep . allowed = p . bindParametersStep . hidden && p . bindStep . valid , p . isNewProject ( ) ? p . ctrl . projectDisplayName = p . ctrl . selectedProject . metadata . annotations [ "new-display-name" ] || p . ctrl . selectedProject . metadata . name : p . ctrl . projectDisplayName = p . $filter ( "displayName" ) ( p . ctrl . selectedProject ) ,
1367
- p . validityWatcher = p . $scope . $watch ( "$ctrl.forms.bindForm.$valid" , function ( e , t ) {
1368
- p . bindStep . valid = e , p . bindParametersStep . allowed = e , p . reviewStep . allowed = p . bindParametersStep . hidden && p . bindStep . valid ;
1365
+ d . clearValidityWatcher ( ) , d . ctrl . configPageShown = ! 1 , d . ctrl . nextTitle = d . bindParametersStep . hidden ? "Create" : "Next >" ,
1366
+ d . reviewStep . allowed = d . bindParametersStep . hidden && d . bindStep . valid , d . isNewProject ( ) ? d . ctrl . projectDisplayName = d . ctrl . selectedProject . metadata . annotations [ "new-display-name" ] || d . ctrl . selectedProject . metadata . name : d . ctrl . projectDisplayName = d . $filter ( "displayName" ) ( d . ctrl . selectedProject ) ,
1367
+ d . validityWatcher = d . $scope . $watch ( "$ctrl.forms.bindForm.$valid" , function ( e , t ) {
1368
+ d . bindStep . valid = e , d . bindParametersStep . allowed = e , d . reviewStep . allowed = d . bindParametersStep . hidden && d . bindStep . valid ;
1369
1369
} ) ;
1370
1370
} , this . showBindParameters = function ( ) {
1371
- p . clearValidityWatcher ( ) , p . ctrl . nextTitle = "Create" , p . validityWatcher = p . $scope . $watch ( "$ctrl.forms.bindParametersForm.$valid" , function ( e , t ) {
1372
- p . bindParametersStep . valid = e , p . reviewStep . allowed = p . bindParametersStep . valid ;
1371
+ d . clearValidityWatcher ( ) , d . ctrl . nextTitle = "Create" , d . validityWatcher = d . $scope . $watch ( "$ctrl.forms.bindParametersForm.$valid" , function ( e , t ) {
1372
+ d . bindParametersStep . valid = e , d . reviewStep . allowed = d . bindParametersStep . valid ;
1373
1373
} ) ;
1374
1374
} , this . showResults = function ( ) {
1375
- p . clearValidityWatcher ( ) , p . ctrl . configPageShown = ! 1 , p . ctrl . nextTitle = "Close" ,
1376
- p . ctrl . wizardDone = ! 0 , p . provisionService ( ) ;
1375
+ d . clearValidityWatcher ( ) , d . ctrl . configPageShown = ! 1 , d . ctrl . nextTitle = "Close" ,
1376
+ d . ctrl . wizardDone = ! 0 , d . provisionService ( ) ;
1377
1377
} , this . provisionService = function ( ) {
1378
- if ( p . ctrl . inProgress = ! 0 , p . ctrl . orderComplete = ! 1 , p . ctrl . error = ! 1 , p . isNewProject ( ) ) {
1379
- var e = p . ctrl . selectedProject . metadata . name , t = p . ctrl . selectedProject . metadata . annotations [ "new-display-name" ] , r = p . $filter ( "description" ) ( p . ctrl . selectedProject ) ;
1380
- p . ProjectsService . create ( e , t , r ) . then ( function ( e ) {
1381
- p . ctrl . selectedProject = e , p . ctrl . projectDisplayName = p . $filter ( "displayName" ) ( e ) ,
1382
- p . createService ( ) ;
1378
+ if ( d . ctrl . inProgress = ! 0 , d . ctrl . orderComplete = ! 1 , d . ctrl . error = ! 1 , d . isNewProject ( ) ) {
1379
+ var e = d . ctrl . selectedProject . metadata . name , t = d . ctrl . selectedProject . metadata . annotations [ "new-display-name" ] , r = d . $filter ( "description" ) ( d . ctrl . selectedProject ) ;
1380
+ d . ProjectsService . create ( e , t , r ) . then ( function ( e ) {
1381
+ d . ctrl . selectedProject = e , d . ctrl . projectDisplayName = d . $filter ( "displayName" ) ( e ) ,
1382
+ d . createService ( ) ;
1383
1383
} , function ( e ) {
1384
- p . ctrl . error = e . data ;
1384
+ d . ctrl . error = e . data ;
1385
1385
} ) ;
1386
- } else p . ctrl . projectDisplayName = p . $filter ( "displayName" ) ( p . ctrl . selectedProject ) ,
1387
- p . createService ( ) ;
1386
+ } else d . ctrl . projectDisplayName = d . $filter ( "displayName" ) ( d . ctrl . selectedProject ) ,
1387
+ d . createService ( ) ;
1388
1388
} , this . onProjectUpdate = function ( ) {
1389
- if ( p . isNewProject ( ) ) p . ctrl . applications = [ ] , p . ctrl . updating = ! 1 , p . updateBindability ( ) ; else if ( p . ctrl . showPodPresets ) {
1390
- p . ctrl . updating = ! 0 , p . ctrl . bindType = "none" , p . ctrl . serviceToBind = p . ctrl . serviceClass ;
1389
+ if ( d . isNewProject ( ) ) d . ctrl . applications = [ ] , d . ctrl . updating = ! 1 , d . updateBindability ( ) ; else if ( d . ctrl . showPodPresets ) {
1390
+ d . ctrl . updating = ! 0 , d . ctrl . bindType = "none" , d . ctrl . serviceToBind = d . ctrl . serviceClass ;
1391
1391
var e = {
1392
- namespace : i . get ( p . ctrl . selectedProject , "metadata.name" )
1392
+ namespace : i . get ( d . ctrl . selectedProject , "metadata.name" )
1393
1393
} ;
1394
- p . ApplicationsService . getApplications ( e ) . then ( function ( e ) {
1395
- p . ctrl . applications = e , p . ctrl . updating = ! 1 , p . updateBindability ( ) ;
1394
+ d . ApplicationsService . getApplications ( e ) . then ( function ( e ) {
1395
+ d . ctrl . applications = e , d . ctrl . updating = ! 1 , d . updateBindability ( ) ;
1396
1396
} ) ;
1397
1397
}
1398
1398
} , this . watchResults = function ( e , t , r ) {
1399
- p . watches . push ( p . DataService . watchObject ( e , t . metadata . name , r , function ( e , t ) {
1399
+ d . watches . push ( d . DataService . watchObject ( e , t . metadata . name , r , function ( e , t ) {
1400
1400
var r = i . get ( e , "status.conditions" ) , n = i . find ( r , {
1401
1401
type : "Ready"
1402
1402
} ) ;
1403
- p . ctrl . orderComplete = n && "True" === n . status , p . ctrl . error = i . find ( r , {
1403
+ d . ctrl . orderComplete = n && "True" === n . status , d . ctrl . error = i . find ( r , {
1404
1404
type : "Failed" ,
1405
1405
status : "True"
1406
1406
} ) ;
1407
1407
} ) ) ;
1408
- } , this . $scope = e , this . $filter = t , this . ApplicationsService = r , this . AuthService = n ,
1409
- this . ProjectsService = a , this . DataService = s , this . BindingService = o , this . Logger = c ,
1410
- this . sendRequesterUsername = ! 1 , this . ctrl . showPodPresets = i . get ( l , [ "ENABLE_TECH_PREVIEW_FEATURE" , "pod_presets" ] , ! 1 ) ,
1411
- this . DNS1123_SUBDOMAIN_VALIDATION = d ;
1408
+ } , this . $scope = e , this . $filter = t , this . ApplicationsService = r , this . ProjectsService = n ,
1409
+ this . DataService = a , this . BindingService = s , this . Logger = o , this . ctrl . showPodPresets = i . get ( c , [ "ENABLE_TECH_PREVIEW_FEATURE" , "pod_presets" ] , ! 1 ) ,
1410
+ this . DNS1123_SUBDOMAIN_VALIDATION = l ;
1412
1411
}
1413
1412
return e . prototype . $onInit = function ( ) {
1414
1413
var e = this ;
@@ -1480,8 +1479,6 @@ webpackJsonp([ 0, 1 ], [ function(e, t) {
1480
1479
} , this . onProjectUpdate ) , this . bindTypeWatch = this . $scope . $watch ( "$ctrl.bindType" , function ( t , r ) {
1481
1480
t !== r && ( e . updateBindParametersStepVisibility ( ) , e . ctrl . nextTitle = e . bindParametersStep . hidden ? "Create" : "Next >" ,
1482
1481
e . reviewStep . allowed = e . bindParametersStep . hidden && e . bindStep . valid ) ;
1483
- } ) , this . AuthService . withUser ( ) . then ( function ( t ) {
1484
- e . user = t , e . ctrl . wizardReady = ! 0 ;
1485
1482
} ) ;
1486
1483
} , e . prototype . selectPlan = function ( e ) {
1487
1484
this . ctrl . selectedPlan = e , this . ctrl . parameterData = { } , this . updateParameterSchema ( e ) ,
@@ -1533,18 +1530,13 @@ webpackJsonp([ 0, 1 ], [ function(e, t) {
1533
1530
} , e . prototype . updateBindParametersStepVisibility = function ( ) {
1534
1531
this . bindParametersStep . hidden = this . bindStep . hidden || "none" === this . ctrl . bindType || ! i . has ( this . ctrl , "bindParameterSchema.properties" ) ,
1535
1532
this . bindParametersStep . allowed = this . bindStep . valid ;
1536
- } , e . prototype . updateParameterSchema = function ( t ) {
1537
- var r = i . get ( t , "instanceCreateParameterSchema" ) ;
1538
- i . has ( r , [ "properties" , e . REQUESTER_USERNAME_PARAM_NAME ] ) ? ( r = n . copy ( r ) , delete r . properties [ e . REQUESTER_USERNAME_PARAM_NAME ] ,
1539
- this . sendRequesterUsername = ! 0 ) : this . sendRequesterUsername = ! 1 , this . ctrl . parameterSchema = r ,
1540
- this . ctrl . parameterFormDefinition = i . get ( this , "ctrl.selectedPlan.externalMetadata.schemas.service_instance.create.openshift_form_definition" ) ,
1541
- this . ctrl . bindParameterSchema = i . get ( t , "serviceInstanceCredentialCreateParameterSchema" ) ;
1533
+ } , e . prototype . updateParameterSchema = function ( e ) {
1534
+ this . ctrl . parameterSchema = i . get ( e , "instanceCreateParameterSchema" ) , this . ctrl . parameterFormDefinition = i . get ( this , "ctrl.selectedPlan.externalMetadata.schemas.service_instance.create.openshift_form_definition" ) ,
1535
+ this . ctrl . bindParameterSchema = i . get ( e , "serviceInstanceCredentialCreateParameterSchema" ) ;
1542
1536
} , e . prototype . getParameters = function ( ) {
1543
- var t = i . omitBy ( this . ctrl . parameterData , function ( e ) {
1537
+ return i . omitBy ( this . ctrl . parameterData , function ( e ) {
1544
1538
return "" === e ;
1545
1539
} ) ;
1546
- return this . sendRequesterUsername && ( t [ e . REQUESTER_USERNAME_PARAM_NAME ] = this . user . metadata . name ) ,
1547
- t ;
1548
1540
} , e . prototype . getServiceClassName = function ( ) {
1549
1541
return i . get ( this , "ctrl.serviceClass.resource.metadata.name" ) ;
1550
1542
} , e . prototype . generateSecretName = function ( ) {
@@ -1596,8 +1588,8 @@ webpackJsonp([ 0, 1 ], [ function(e, t) {
1596
1588
return ! this . ctrl . selectedProject || ! i . has ( this . ctrl . selectedProject , "metadata.uid" ) ;
1597
1589
} , e ;
1598
1590
} ( ) ;
1599
- a . $inject = [ "$scope" , "$filter" , "ApplicationsService" , "AuthService" , " ProjectsService", "DataService" , "BindingService" , "Logger" , "Constants" , "DNS1123_SUBDOMAIN_VALIDATION" ] ,
1600
- a . REQUESTER_USERNAME_PARAM_NAME = "template.openshift.io/requester-username" , t . OrderServiceController = a ;
1591
+ a . $inject = [ "$scope" , "$filter" , "ApplicationsService" , "ProjectsService" , "DataService" , "BindingService" , "Logger" , "Constants" , "DNS1123_SUBDOMAIN_VALIDATION" ] ,
1592
+ t . OrderServiceController = a ;
1601
1593
} , function ( e , t , r ) {
1602
1594
"use strict" ;
1603
1595
t . __esModule = ! 0 ;
0 commit comments