@@ -6997,7 +6997,7 @@ group:d.group
6997
6997
} ;
6998
6998
if ( ! h . canI ( n , "update" , d . project ) ) return void l . toErrorPage ( "You do not have authority to update " + o ( d . kind ) + " " + d . name + "." , "access_denied" ) ;
6999
6999
j . get ( n , e . name , m ) . then ( function ( a ) {
7000
- var d = angular . copy ( a ) ;
7000
+ var d = e . object = angular . copy ( a ) ;
7001
7001
e . breadcrumbs = i . getBreadcrumbs ( {
7002
7002
object :d ,
7003
7003
project :c ,
@@ -7720,7 +7720,7 @@ resource:h.kindToResource(c.kind),
7720
7720
group :c . group
7721
7721
} ;
7722
7722
return f . canI ( p , "update" , c . project ) ? void i . get ( p , d . name , l ) . then ( function ( a ) {
7723
- var f = angular . copy ( a ) ;
7723
+ var f = d . object = angular . copy ( a ) ;
7724
7724
d . breadcrumbs = g . getBreadcrumbs ( {
7725
7725
object :f ,
7726
7726
project :k ,
@@ -13540,7 +13540,29 @@ scope:{
13540
13540
build :"="
13541
13541
}
13542
13542
} ;
13543
- } ) , angular . module ( "openshiftConsole" ) . filter ( "duration" , function ( ) {
13543
+ } ) , angular . module ( "openshiftConsole" ) . directive ( "pauseRolloutsCheckbox" , [ "APIService" , function ( a ) {
13544
+ return {
13545
+ restrict :"E" ,
13546
+ scope :{
13547
+ deployment :"=" ,
13548
+ disabled :"=ngDisabled" ,
13549
+ alwaysVisible :"="
13550
+ } ,
13551
+ templateUrl :"views/directives/pause-rollouts-checkbox.html" ,
13552
+ link :function ( b ) {
13553
+ var c = function ( ) {
13554
+ if ( ! b . deployment ) return ! 1 ;
13555
+ var c = a . objectToResourceGroupVersion ( b . deployment ) ;
13556
+ return "deploymentconfigs" === c . resource && ! c . group ;
13557
+ } ;
13558
+ b . $watch ( "deployment.spec.triggers" , function ( a ) {
13559
+ b . missingConfigChangeTrigger = c ( ) && ! _ . some ( a , {
13560
+ type :"ConfigChange"
13561
+ } ) ;
13562
+ } , ! 0 ) ;
13563
+ }
13564
+ } ;
13565
+ } ] ) , angular . module ( "openshiftConsole" ) . filter ( "duration" , function ( ) {
13544
13566
return function ( a , b , c , d ) {
13545
13567
function e ( a , b , d ) {
13546
13568
if ( 0 !== a ) return 1 === a ? void ( c ? h . push ( b ) :h . push ( "1 " + b ) ) :void h . push ( a + " " + d ) ;
@@ -14385,7 +14407,13 @@ name:b.name
14385
14407
} ) ;
14386
14408
return a ( d ) ? "read-only" :_ . get ( d , "persistentVolumeClaim.readOnly" ) ? "read-only" :b . readOnly ? "read-only" :"read-write" ;
14387
14409
} ;
14388
- } ) , angular . module ( "openshiftConsole" ) . filter ( "canI" , [ "AuthorizationService" , function ( a ) {
14410
+ } ) . filter ( "managesRollouts" , [ "APIService" , function ( a ) {
14411
+ return function ( b ) {
14412
+ if ( ! b ) return ! 1 ;
14413
+ var c = a . objectToResourceGroupVersion ( b ) ;
14414
+ return "deploymentconfigs" === c . resource && ! c . group || "deployments" === c . resource && "extensions" === c . group ;
14415
+ } ;
14416
+ } ] ) , angular . module ( "openshiftConsole" ) . filter ( "canI" , [ "AuthorizationService" , function ( a ) {
14389
14417
return function ( b , c , d ) {
14390
14418
return a . canI ( b , c , d ) ;
14391
14419
} ;
0 commit comments