Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
origin-web-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Java-于龙
origin-web-common
Commits
30ab67f4
Commit
30ab67f4
authored
May 24, 2017
by
Jeffrey Phillips
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add hasDeployment and hadDeploymentConfig filters
parent
a83b0abb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
3 deletions
+44
-3
origin-web-common-ui.js
dist/origin-web-common-ui.js
+12
-1
origin-web-common.js
dist/origin-web-common.js
+12
-1
origin-web-common.min.js
dist/origin-web-common.min.js
+8
-0
resources.js
src/filters/resources.js
+12
-1
No files found.
dist/origin-web-common-ui.js
View file @
30ab67f4
...
@@ -1421,7 +1421,18 @@ angular.module('openshiftCommonUI')
...
@@ -1421,7 +1421,18 @@ angular.module('openshiftCommonUI')
})
})
.
filter
(
'isBindingReady'
,
function
(
isServiceInstanceReadyFilter
)
{
.
filter
(
'isBindingReady'
,
function
(
isServiceInstanceReadyFilter
)
{
return
isServiceInstanceReadyFilter
;
return
isServiceInstanceReadyFilter
;
});
})
.
filter
(
'hasDeployment'
,
function
(
annotationFilter
)
{
return
function
(
object
)
{
return
!!
annotationFilter
(
object
,
'deployment.kubernetes.io/revision'
);
};
})
.
filter
(
'hasDeploymentConfig'
,
function
(
annotationFilter
)
{
return
function
(
deployment
)
{
return
!!
annotationFilter
(
deployment
,
'deploymentConfig'
);
};
})
;
;
'use strict'
;
;
'use strict'
;
angular
.
module
(
'openshiftCommonUI'
)
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
'camelToLower'
,
function
()
{
.
filter
(
'camelToLower'
,
function
()
{
...
...
dist/origin-web-common.js
View file @
30ab67f4
...
@@ -1592,7 +1592,18 @@ angular.module('openshiftCommonUI')
...
@@ -1592,7 +1592,18 @@ angular.module('openshiftCommonUI')
}])
}])
.
filter
(
'isBindingReady'
,
[
"isServiceInstanceReadyFilter"
,
function
(
isServiceInstanceReadyFilter
)
{
.
filter
(
'isBindingReady'
,
[
"isServiceInstanceReadyFilter"
,
function
(
isServiceInstanceReadyFilter
)
{
return
isServiceInstanceReadyFilter
;
return
isServiceInstanceReadyFilter
;
}]);
}])
.
filter
(
'hasDeployment'
,
[
"annotationFilter"
,
function
(
annotationFilter
)
{
return
function
(
object
)
{
return
!!
annotationFilter
(
object
,
'deployment.kubernetes.io/revision'
);
};
}])
.
filter
(
'hasDeploymentConfig'
,
[
"annotationFilter"
,
function
(
annotationFilter
)
{
return
function
(
deployment
)
{
return
!!
annotationFilter
(
deployment
,
'deploymentConfig'
);
};
}])
;
;
'use strict'
;
;
'use strict'
;
angular
.
module
(
'openshiftCommonUI'
)
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
'camelToLower'
,
function
()
{
.
filter
(
'camelToLower'
,
function
()
{
...
...
dist/origin-web-common.min.js
View file @
30ab67f4
...
@@ -606,6 +606,14 @@ return "True" === _.get(statusConditionFilter(apiObject, "Ready"), "status");
...
@@ -606,6 +606,14 @@ return "True" === _.get(statusConditionFilter(apiObject, "Ready"), "status");
};
};
}
]).
filter
(
"isBindingReady"
,
[
"isServiceInstanceReadyFilter"
,
function
(
isServiceInstanceReadyFilter
)
{
}
]).
filter
(
"isBindingReady"
,
[
"isServiceInstanceReadyFilter"
,
function
(
isServiceInstanceReadyFilter
)
{
return
isServiceInstanceReadyFilter
;
return
isServiceInstanceReadyFilter
;
}
]).
filter
(
"hasDeployment"
,
[
"annotationFilter"
,
function
(
annotationFilter
)
{
return
function
(
object
)
{
return
!!
annotationFilter
(
object
,
"deployment.kubernetes.io/revision"
);
};
}
]).
filter
(
"hasDeploymentConfig"
,
[
"annotationFilter"
,
function
(
annotationFilter
)
{
return
function
(
deployment
)
{
return
!!
annotationFilter
(
deployment
,
"deploymentConfig"
);
};
}
]),
angular
.
module
(
"openshiftCommonUI"
).
filter
(
"camelToLower"
,
function
()
{
}
]),
angular
.
module
(
"openshiftCommonUI"
).
filter
(
"camelToLower"
,
function
()
{
return
function
(
str
)
{
return
function
(
str
)
{
return
str
?
_
.
startCase
(
str
).
toLowerCase
()
:
str
;
return
str
?
_
.
startCase
(
str
).
toLowerCase
()
:
str
;
...
...
src/filters/resources.js
View file @
30ab67f4
...
@@ -133,4 +133,15 @@ angular.module('openshiftCommonUI')
...
@@ -133,4 +133,15 @@ angular.module('openshiftCommonUI')
})
})
.
filter
(
'isBindingReady'
,
function
(
isServiceInstanceReadyFilter
)
{
.
filter
(
'isBindingReady'
,
function
(
isServiceInstanceReadyFilter
)
{
return
isServiceInstanceReadyFilter
;
return
isServiceInstanceReadyFilter
;
});
})
.
filter
(
'hasDeployment'
,
function
(
annotationFilter
)
{
return
function
(
object
)
{
return
!!
annotationFilter
(
object
,
'deployment.kubernetes.io/revision'
);
};
})
.
filter
(
'hasDeploymentConfig'
,
function
(
annotationFilter
)
{
return
function
(
deployment
)
{
return
!!
annotationFilter
(
deployment
,
'deploymentConfig'
);
};
})
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment