@@ -4177,31 +4177,39 @@ controller: !0
4177
4177
} ) ;
4178
4178
}
4179
4179
} ;
4180
- } ) , angular . module ( "openshiftConsole" ) . controller ( "LandingPageController" , [ "$scope" , "$rootScope" , "AuthService" , "Catalog" , "Constants" , "Navigate" , "NotificationsService" , "RecentlyViewedServiceItems" , "GuidedTourService" , "HTMLService" , "$timeout" , "$routeParams" , "$location" , function ( e , t , n , a , r , o , i , s , c , l , u , d , m ) {
4181
- function p ( ) {
4182
- if ( f ) if ( d . startTour ) u ( function ( ) {
4183
- m . replace ( ) , m . search ( "startTour" , null ) , e . startGuidedTour ( ) ;
4184
- } , 500 ) ; else if ( _ . get ( g , "auto_launch" ) ) {
4180
+ } ) , angular . module ( "openshiftConsole" ) . controller ( "LandingPageController" , [ "$scope" , "$rootScope" , "AuthService" , "Catalog" , "Constants" , "DataService" , " Navigate", "NotificationsService" , "RecentlyViewedServiceItems" , "GuidedTourService" , "HTMLService" , "$timeout" , "$q" , "$ routeParams", "$location" , function ( e , t , n , a , r , o , i , s , c , l , u , d , m , p , g ) {
4181
+ function f ( ) {
4182
+ if ( v ) if ( p . startTour ) d ( function ( ) {
4183
+ g . replace ( ) , g . search ( "startTour" , null ) , e . startGuidedTour ( ) ;
4184
+ } , 500 ) ; else if ( _ . get ( h , "auto_launch" ) ) {
4185
4185
var n = "openshift/viewedHomePage/" + t . user . metadata . name ;
4186
- "true" !== localStorage . getItem ( n ) && u ( function ( ) {
4186
+ "true" !== localStorage . getItem ( n ) && d ( function ( ) {
4187
4187
e . startGuidedTour ( ) && localStorage . setItem ( n , "true" ) ;
4188
4188
} , 500 ) ;
4189
4189
}
4190
4190
}
4191
- var g = _ . get ( r , "GUIDED_TOURS.landing_page_tour" ) , f = g && g . enabled && g . steps ;
4191
+ var h = _ . get ( r , "GUIDED_TOURS.landing_page_tour" ) , v = h && h . enabled && h . steps ;
4192
4192
e . saasOfferings = r . SAAS_OFFERINGS , e . viewMembership = function ( e ) {
4193
- o . toProjectMembership ( e . metadata . name ) ;
4194
- } , f && ( e . startGuidedTour = function ( ) {
4195
- return ! l . isWindowBelowBreakpoint ( l . WINDOW_SIZE_SM ) && ( c . startTour ( g . steps ) , ! 0 ) ;
4196
- } ) , i . clearNotifications ( ) ;
4197
- var h = function ( ) {
4193
+ i . toProjectMembership ( e . metadata . name ) ;
4194
+ } , v && ( e . startGuidedTour = function ( ) {
4195
+ return ! u . isWindowBelowBreakpoint ( u . WINDOW_SIZE_SM ) && ( l . startTour ( h . steps ) , ! 0 ) ;
4196
+ } ) , s . clearNotifications ( ) ;
4197
+ var y = function ( ) {
4198
4198
var t = _ . get ( e , "template.metadata.uid" ) ;
4199
- t && s . addItem ( t ) ;
4199
+ t && c . addItem ( t ) ;
4200
+ } , b = function ( e ) {
4201
+ return "PartialObjectMetadata" === e . kind ;
4202
+ } , C = function ( e ) {
4203
+ return b ( e ) ? o . get ( "templates" , e . metadata . name , {
4204
+ namespace : e . metadata . namespace
4205
+ } ) : m . when ( e ) ;
4200
4206
} ;
4201
4207
e . templateSelected = function ( t ) {
4208
+ C ( t ) . then ( function ( t ) {
4202
4209
e . template = t ;
4210
+ } ) ;
4203
4211
} , e . templateDialogClosed = function ( ) {
4204
- h ( ) , e . template = null ;
4212
+ y ( ) , e . template = null ;
4205
4213
} , n . withUser ( ) . then ( function ( ) {
4206
4214
var t = ! _ . get ( r , "ENABLE_TECH_PREVIEW_FEATURE.template_service_broker" ) ;
4207
4215
a . getCatalogItems ( t ) . then ( _ . spread ( function ( t , n ) {
@@ -4210,14 +4218,14 @@ var a = {
4210
4218
type : "error" ,
4211
4219
message : n
4212
4220
} ;
4213
- i . addNotification ( a ) ;
4221
+ s . addNotification ( a ) ;
4214
4222
}
4215
- e . catalogItems = t , p ( ) ;
4223
+ e . catalogItems = t , f ( ) ;
4216
4224
} ) ) ;
4217
4225
} ) , e . $on ( "$destroy" , function ( ) {
4218
- h ( ) ;
4219
- } ) , f && e . $on ( "$locationChangeStart" , function ( t ) {
4220
- m . search ( ) . startTour && ( e . startGuidedTour ( ) , t . preventDefault ( ) ) ;
4226
+ y ( ) ;
4227
+ } ) , v && e . $on ( "$locationChangeStart" , function ( t ) {
4228
+ g . search ( ) . startTour && ( e . startGuidedTour ( ) , t . preventDefault ( ) ) ;
4221
4229
} ) ;
4222
4230
} ] ) , angular . module ( "openshiftConsole" ) . controller ( "ProjectsController" , [ "$scope" , "$filter" , "$location" , "$route" , "$timeout" , "AuthService" , "DataService" , "KeywordService" , "Logger" , "ProjectsService" , function ( e , t , n , a , r , o , i , s , c , l ) {
4223
4231
var u , d , m = [ ] , p = [ ] ;
@@ -7453,11 +7461,15 @@ namespace: "openshift"
7453
7461
e . openshiftImageStreams = t . by ( "metadata.name" ) ;
7454
7462
} ) , s . list ( "templates" , {
7455
7463
namespace : "openshift"
7464
+ } , null , {
7465
+ partialObjectMetadataList : ! 0
7456
7466
} ) . then ( function ( t ) {
7457
7467
e . openshiftTemplates = t . by ( "metadata.name" ) ;
7458
7468
} ) , "openshift" === r . project ? ( e . projectImageStreams = [ ] , e . projectTemplates = [ ] ) : ( s . list ( "imagestreams" , a ) . then ( function ( t ) {
7459
7469
e . projectImageStreams = t . by ( "metadata.name" ) ;
7460
- } ) , s . list ( "templates" , a ) . then ( function ( t ) {
7470
+ } ) , s . list ( "templates" , a , null , {
7471
+ partialObjectMetadataList : ! 0
7472
+ } ) . then ( function ( t ) {
7461
7473
e . projectTemplates = t . by ( "metadata.name" ) ;
7462
7474
} ) ) ;
7463
7475
} ) ) ) : l . toErrorPage ( "Catalog category " + r . category + "/" + r . subcategory + " not found." ) ;
@@ -7919,11 +7931,15 @@ namespace: "openshift"
7919
7931
e . openshiftImageStreams = t . by ( "metadata.name" ) ;
7920
7932
} ) , c . list ( "templates" , {
7921
7933
namespace : "openshift"
7934
+ } , null , {
7935
+ partialObjectMetadataList : ! 0
7922
7936
} ) . then ( function ( t ) {
7923
7937
e . openshiftTemplates = t . by ( "metadata.name" ) ;
7924
7938
} ) , "openshift" === r . project ? ( e . projectImageStreams = [ ] , e . projectTemplates = [ ] ) : ( c . list ( "imagestreams" , a ) . then ( function ( t ) {
7925
7939
e . projectImageStreams = t . by ( "metadata.name" ) ;
7926
- } ) , c . list ( "templates" , a ) . then ( function ( t ) {
7940
+ } ) , c . list ( "templates" , a , null , {
7941
+ partialObjectMetadataList : ! 0
7942
+ } ) . then ( function ( t ) {
7927
7943
e . projectTemplates = t . by ( "metadata.name" ) ;
7928
7944
} ) ) ;
7929
7945
} ) ) ;
0 commit comments