Commit 1996bd3d authored by Jan Marchel's avatar Jan Marchel
Browse files

changing geting byon def method

parent aeb2be33
Pipeline #18374 failed with stage
in 2 minutes and 37 seconds
......@@ -73,25 +73,17 @@ export class ByonListComponent extends ByonListCommonComponent implements OnInit
getByonDefinitionList() {
this.byonLoadingInProgress = true;
this.processOfferService.getCloudList().subscribe(cloudsResposne => {
this.cloudsList = cloudsResposne;
this.byonService.getByonDefinitionList().subscribe(byonDefValue => {
console.log(`Successfully getting byon definitions`);
this.updateByonTableData(byonDefValue);
this.byonLoadingInProgress = false;
},
error1 => {
this.byonLoadingInProgress = false;
console.log('Error by getting byon definitions');
if (error1.status !== 404) {
this.snackBar.open(`Error by getting byon definitions: ${error1.error.message}`, 'Close');
}
});
this.byonService.getByonDefinitionList().subscribe(byonDefValue => {
console.log(`Successfully getting byon definitions`);
this.updateByonTableData(byonDefValue);
this.byonLoadingInProgress = false;
},
error1 => {
this.byonLoadingInProgress = false;
this.cloudsList = [];
this.snackBar.open(`Problem by getting data about clouds: ${error1.error.message}`, 'Close');
console.log('Error by getting byon definitions');
if (error1.status !== 404) {
this.snackBar.open(`Error by getting byon definitions: ${error1.error.message}`, 'Close');
}
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment