Code Review
/
portal
/
ric-dashboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
update onboard workflow
[portal/ric-dashboard.git]
/
dashboard
/
webapp-frontend
/
src
/
app
/
onboard
/
onboard.component.ts
diff --git
a/dashboard/webapp-frontend/src/app/onboard/onboard.component.ts
b/dashboard/webapp-frontend/src/app/onboard/onboard.component.ts
index
4f843db
..
adf8596
100644
(file)
--- a/
dashboard/webapp-frontend/src/app/onboard/onboard.component.ts
+++ b/
dashboard/webapp-frontend/src/app/onboard/onboard.component.ts
@@
-52,7
+52,7
@@
export class OnboardComponent implements OnInit {
ngOnInit(): void {
this.urlOnboardForm = new FormGroup({
configURL: new FormControl('', [Validators.required]),
ngOnInit(): void {
this.urlOnboardForm = new FormGroup({
configURL: new FormControl('', [Validators.required]),
- schemaURL: new FormControl(''
, [Validators.required]
)
+ schemaURL: new FormControl('')
})
}
;
})
}
;
@@
-60,11
+60,9
@@
export class OnboardComponent implements OnInit {
controlsSchema: File;
descriptor = {
"config-file.json": {},
controlsSchema: File;
descriptor = {
"config-file.json": {},
- "controls-schema.json": {}
}
descriptor_url = {
"config-file.json_url": "",
}
descriptor_url = {
"config-file.json_url": "",
- "controls-schema.json_url": ""
}
uploadFromLocal() {
}
uploadFromLocal() {
@@
-92,7
+90,9
@@
export class OnboardComponent implements OnInit {
uploadFromURL(data) {
this.descriptor_url["config-file.json_url"] = data.configURL;
uploadFromURL(data) {
this.descriptor_url["config-file.json_url"] = data.configURL;
- this.descriptor_url["controls-schema.json_url"] = data.schemaURL;
+ if (data.schemaURL) {
+ this.descriptor_url["controls-schema.json_url"] = data.schemaURL;
+ }
this.loadingDialogService.startLoading('Onboarding xApp');
this.xappOnboarderService.onboardXappURL(this.descriptor_url, this.data.instanceKey)
.pipe(
this.loadingDialogService.startLoading('Onboarding xApp');
this.xappOnboarderService.onboardXappURL(this.descriptor_url, this.data.instanceKey)
.pipe(