File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export interface Instance {
39
39
/**
40
40
* State of the instance
41
41
*/
42
- state ?: StateEnum ;
42
+ instanceState ?: StateEnum ;
43
43
labels ?: Array < string > ;
44
44
}
45
45
Original file line number Diff line number Diff line change @@ -66,15 +66,15 @@ export class TableAllComponent implements OnInit {
66
66
} ) ;
67
67
68
68
dialogRef . afterClosed ( ) . subscribe ( result => {
69
- console . log ( 'delete state' , instance . state ) ;
70
- if ( result === 'Confirm' && instance . state === 'Running' ) {
69
+ console . log ( 'delete state' , instance . instanceState ) ;
70
+ if ( result === 'Confirm' && instance . instanceState === 'Running' ) {
71
71
console . log ( 'alert working' ) ;
72
72
alert ( 'Please Stop the Instance before you try to delete' ) ;
73
73
console . log ( 'data' , this . dataSource . data ) ;
74
74
75
75
} else {
76
- this . apiService . deleteInstance ( id ) . subscribe ( ( result : number ) => {
77
- console . log ( 'result' , result ) ;
76
+ this . apiService . deleteInstance ( id ) . subscribe ( ( deleteResult : number ) => {
77
+ console . log ( 'result' , deleteResult ) ;
78
78
} , err => {
79
79
console . log ( 'error delete Instance' ) ;
80
80
} ) ;
@@ -110,7 +110,7 @@ export class TableAllComponent implements OnInit {
110
110
host : result . host ,
111
111
portNumber : result . portNumber ,
112
112
name : dialogResult . name ,
113
- state : result . state ,
113
+ instanceState : result . instanceState ,
114
114
componentType : instance . componentType
115
115
} ) ;
116
116
this . table . renderRows ( ) ;
You can’t perform that action at this time.
0 commit comments