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
651aa230
Commit
651aa230
authored
May 24, 2017
by
David Taylor
Committed by
GitHub
May 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #83 from jeff-phillips-18/filters
Add hasDeployment and hadDeploymentConfig filters
parents
a83b0abb
30ab67f4
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 @
651aa230
...
...
@@ -1421,7 +1421,18 @@ angular.module('openshiftCommonUI')
})
.
filter
(
'isBindingReady'
,
function
(
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'
;
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
'camelToLower'
,
function
()
{
...
...
dist/origin-web-common.js
View file @
651aa230
...
...
@@ -1592,7 +1592,18 @@ angular.module('openshiftCommonUI')
}])
.
filter
(
'isBindingReady'
,
[
"isServiceInstanceReadyFilter"
,
function
(
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'
;
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
'camelToLower'
,
function
()
{
...
...
dist/origin-web-common.min.js
View file @
651aa230
...
...
@@ -606,6 +606,14 @@ return "True" === _.get(statusConditionFilter(apiObject, "Ready"), "status");
};
}
]).
filter
(
"isBindingReady"
,
[
"isServiceInstanceReadyFilter"
,
function
(
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
()
{
return
function
(
str
)
{
return
str
?
_
.
startCase
(
str
).
toLowerCase
()
:
str
;
...
...
src/filters/resources.js
View file @
651aa230
...
...
@@ -133,4 +133,15 @@ angular.module('openshiftCommonUI')
})
.
filter
(
'isBindingReady'
,
function
(
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