Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Cosy-Bio
Drugst.One
plugin
Commits
bccacd4d
Commit
bccacd4d
authored
3 years ago
by
Maiykol
Browse files
Options
Downloads
Patches
Plain Diff
refresh network on network relevant config change
parent
4b43c231
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#11039
failed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/pages/explorer-page/explorer-page.component.ts
+13
-0
13 additions, 0 deletions
src/app/pages/explorer-page/explorer-page.component.ts
with
13 additions
and
0 deletions
src/app/pages/explorer-page/explorer-page.component.ts
+
13
−
0
View file @
bccacd4d
...
...
@@ -49,20 +49,25 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
if
(
typeof
config
===
'
undefined
'
)
{
return
;
}
// check if config updates affect network
let
updateNetworkFlag
=
false
;
const
configObj
=
JSON
.
parse
(
config
);
for
(
const
key
of
Object
.
keys
(
configObj
))
{
if
(
key
===
'
nodeGroups
'
)
{
this
.
setConfigNodeGroup
(
key
,
configObj
[
key
]);
updateNetworkFlag
=
true
;
// dont set the key here, will be set in function
continue
;
}
else
if
(
key
===
'
edgeGroups
'
)
{
this
.
setConfigEdgeGroup
(
key
,
configObj
[
key
])
updateNetworkFlag
=
true
;
// dont set the key here, will be set in function
continue
;
}
else
if
(
key
===
'
interactions
'
)
{
this
.
getInteractions
();
updateNetworkFlag
=
true
;
// dont set the key here, will be set in function
continue
;
}
else
if
(
key
===
'
showLeftSidebar
'
)
{
...
...
@@ -84,6 +89,10 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
}
this
.
myConfig
[
key
]
=
configObj
[
key
];
}
if
(
updateNetworkFlag
&&
typeof
this
.
networkJSON
!==
'
undefined
'
)
{
// update network if network config has changed and networkJSON exists
this
.
createNetwork
();
}
}
@
Input
()
...
...
@@ -267,6 +276,10 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
this
.
showDetails
=
false
;
}
// public async updateNetwork() {
// }
public
async
createNetwork
()
{
this
.
analysis
.
resetSelection
();
this
.
selectedWrapper
=
null
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment