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
110fbb12
Commit
110fbb12
authored
Jun 05, 2017
by
benjaminapetersen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .length check in filters/annotation
parent
0133f657
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
origin-web-common-ui.js
dist/origin-web-common-ui.js
+1
-2
origin-web-common.js
dist/origin-web-common.js
+1
-2
origin-web-common.min.js
dist/origin-web-common.min.js
+1
-1
annotation.js
src/filters/annotation.js
+1
-2
No files found.
dist/origin-web-common-ui.js
View file @
110fbb12
...
@@ -1113,7 +1113,7 @@ angular.module('openshiftCommonUI')
...
@@ -1113,7 +1113,7 @@ angular.module('openshiftCommonUI')
tagName
=
tagName
||
'latest'
;
tagName
=
tagName
||
'latest'
;
if
(
resource
&&
resource
.
spec
&&
resource
.
spec
.
tags
){
if
(
resource
&&
resource
.
spec
&&
resource
.
spec
.
tags
){
var
tags
=
resource
.
spec
.
tags
;
var
tags
=
resource
.
spec
.
tags
;
for
(
var
i
=
0
;
i
<
tags
.
length
;
++
i
){
for
(
var
i
=
0
;
i
<
_
.
size
(
tags
)
;
++
i
){
var
tag
=
tags
[
i
];
var
tag
=
tags
[
i
];
if
(
tagName
===
tag
.
name
&&
tag
.
annotations
){
if
(
tagName
===
tag
.
name
&&
tag
.
annotations
){
return
tag
.
annotations
[
key
];
return
tag
.
annotations
[
key
];
...
@@ -1141,7 +1141,6 @@ angular.module('openshiftCommonUI')
...
@@ -1141,7 +1141,6 @@ angular.module('openshiftCommonUI')
return
(
icon
)
?
icon
:
"fa fa-cube"
;
return
(
icon
)
?
icon
:
"fa fa-cube"
;
};
};
});
});
;
'use strict'
;
;
'use strict'
;
angular
angular
...
...
dist/origin-web-common.js
View file @
110fbb12
...
@@ -1284,7 +1284,7 @@ angular.module('openshiftCommonUI')
...
@@ -1284,7 +1284,7 @@ angular.module('openshiftCommonUI')
tagName
=
tagName
||
'latest'
;
tagName
=
tagName
||
'latest'
;
if
(
resource
&&
resource
.
spec
&&
resource
.
spec
.
tags
){
if
(
resource
&&
resource
.
spec
&&
resource
.
spec
.
tags
){
var
tags
=
resource
.
spec
.
tags
;
var
tags
=
resource
.
spec
.
tags
;
for
(
var
i
=
0
;
i
<
tags
.
length
;
++
i
){
for
(
var
i
=
0
;
i
<
_
.
size
(
tags
)
;
++
i
){
var
tag
=
tags
[
i
];
var
tag
=
tags
[
i
];
if
(
tagName
===
tag
.
name
&&
tag
.
annotations
){
if
(
tagName
===
tag
.
name
&&
tag
.
annotations
){
return
tag
.
annotations
[
key
];
return
tag
.
annotations
[
key
];
...
@@ -1312,7 +1312,6 @@ angular.module('openshiftCommonUI')
...
@@ -1312,7 +1312,6 @@ angular.module('openshiftCommonUI')
return
(
icon
)
?
icon
:
"fa fa-cube"
;
return
(
icon
)
?
icon
:
"fa fa-cube"
;
};
};
}]);
}]);
;
'use strict'
;
;
'use strict'
;
angular
angular
...
...
dist/origin-web-common.min.js
View file @
110fbb12
...
@@ -488,7 +488,7 @@ return null;
...
@@ -488,7 +488,7 @@ return null;
};
};
}
]).
filter
(
"imageStreamTagAnnotation"
,
function
()
{
}
]).
filter
(
"imageStreamTagAnnotation"
,
function
()
{
return
function
(
resource
,
key
,
tagName
)
{
return
function
(
resource
,
key
,
tagName
)
{
if
(
tagName
=
tagName
||
"latest"
,
resource
&&
resource
.
spec
&&
resource
.
spec
.
tags
)
for
(
var
tags
=
resource
.
spec
.
tags
,
i
=
0
;
i
<
tags
.
length
;
++
i
)
{
if
(
tagName
=
tagName
||
"latest"
,
resource
&&
resource
.
spec
&&
resource
.
spec
.
tags
)
for
(
var
tags
=
resource
.
spec
.
tags
,
i
=
0
;
i
<
_
.
size
(
tags
)
;
++
i
)
{
var
tag
=
tags
[
i
];
var
tag
=
tags
[
i
];
if
(
tagName
===
tag
.
name
&&
tag
.
annotations
)
return
tag
.
annotations
[
key
];
if
(
tagName
===
tag
.
name
&&
tag
.
annotations
)
return
tag
.
annotations
[
key
];
}
}
...
...
src/filters/annotation.js
View file @
110fbb12
...
@@ -59,7 +59,7 @@ angular.module('openshiftCommonUI')
...
@@ -59,7 +59,7 @@ angular.module('openshiftCommonUI')
tagName
=
tagName
||
'latest'
;
tagName
=
tagName
||
'latest'
;
if
(
resource
&&
resource
.
spec
&&
resource
.
spec
.
tags
){
if
(
resource
&&
resource
.
spec
&&
resource
.
spec
.
tags
){
var
tags
=
resource
.
spec
.
tags
;
var
tags
=
resource
.
spec
.
tags
;
for
(
var
i
=
0
;
i
<
tags
.
length
;
++
i
){
for
(
var
i
=
0
;
i
<
_
.
size
(
tags
)
;
++
i
){
var
tag
=
tags
[
i
];
var
tag
=
tags
[
i
];
if
(
tagName
===
tag
.
name
&&
tag
.
annotations
){
if
(
tagName
===
tag
.
name
&&
tag
.
annotations
){
return
tag
.
annotations
[
key
];
return
tag
.
annotations
[
key
];
...
@@ -87,4 +87,3 @@ angular.module('openshiftCommonUI')
...
@@ -87,4 +87,3 @@ angular.module('openshiftCommonUI')
return
(
icon
)
?
icon
:
"fa fa-cube"
;
return
(
icon
)
?
icon
:
"fa fa-cube"
;
};
};
});
});
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