Code Review
/
sdc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Make Service base type optional
[sdc.git]
/
catalog-ui
/
src
/
app
/
models
/
components
/
service.ts
diff --git
a/catalog-ui/src/app/models/components/service.ts
b/catalog-ui/src/app/models/components/service.ts
index
d11a06a
..
1c7c6b6
100644
(file)
--- a/
catalog-ui/src/app/models/components/service.ts
+++ b/
catalog-ui/src/app/models/components/service.ts
@@
-220,6
+220,10
@@
export class Service extends Component {
this.iconSprite = "sprite-services-icons";
}
+ public isSubstituteCandidate(): boolean {
+ return !!this.derivedFromGenericType;
+ }
+
public toJSON = ():any => {
let temp = angular.copy(this);
temp.componentService = undefined;