Code Review
/
sdc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Catalog alignment
[sdc.git]
/
catalog-ui
/
src
/
app
/
models
/
graph
/
relationship.ts
diff --git
a/catalog-ui/src/app/models/graph/relationship.ts
b/catalog-ui/src/app/models/graph/relationship.ts
index
8d56272
..
13a1bd1
100644
(file)
--- a/
catalog-ui/src/app/models/graph/relationship.ts
+++ b/
catalog-ui/src/app/models/graph/relationship.ts
@@
-119,4
+119,11
@@
export class Relationship {
this.capability = capability;
this.requirement = requirement;
};
+
+ public toJSON = ():any => {
+ let temp = angular.copy(this);
+ temp.capability = undefined;
+ temp.requirement = undefined;
+ return temp;
+ }
}