@@ -22,6 +22,7 @@ import { MatDialog, MatDialogRef, MAT_DIALOG_DATA, MatTable, MatPaginator, MatTa
22
22
import { DeleteDialogComponent } from '../delete-dialog/delete-dialog.component' ;
23
23
import { AddDialogComponent } from '../add-dialog/add-dialog.component' ;
24
24
import { ApiService } from '../../api/api/api.service' ;
25
+ import { HttpEvent } from '@angular/common/http' ;
25
26
26
27
27
28
@@ -77,7 +78,7 @@ export class TableAllComponent implements OnInit {
77
78
console . log ( 'data' , this . dataSource . data ) ;
78
79
79
80
} else {
80
- this . apiService . deleteInstance ( id ) . subscribe ( ( deleteResult : number ) => {
81
+ this . apiService . deleteInstance ( id ) . subscribe ( ( deleteResult : HttpEvent < number > ) => {
81
82
console . log ( 'result' , deleteResult ) ;
82
83
} , err => {
83
84
console . log ( 'error delete Instance' ) ;
@@ -133,7 +134,7 @@ export class TableAllComponent implements OnInit {
133
134
*/
134
135
public startInstance ( id : string ) : void {
135
136
136
- this . apiService . startInstance ( id ) . subscribe ( ( result : number ) => {
137
+ this . apiService . startInstance ( id ) . subscribe ( ( result : HttpEvent < number > ) => {
137
138
console . log ( 'result' , result ) ;
138
139
} , err => {
139
140
console . log ( 'error start Instance' , err ) ;
@@ -146,7 +147,7 @@ export class TableAllComponent implements OnInit {
146
147
*/
147
148
public stopInstance ( id : string ) : void {
148
149
149
- this . apiService . stopInstance ( id ) . subscribe ( ( result : number ) => {
150
+ this . apiService . stopInstance ( id ) . subscribe ( ( result : HttpEvent < number > ) => {
150
151
console . log ( 'result' , result ) ;
151
152
} , err => {
152
153
console . log ( 'error stop Instance' , err ) ;
@@ -159,7 +160,7 @@ export class TableAllComponent implements OnInit {
159
160
*/
160
161
public pauseInstance ( id : string ) : void {
161
162
162
- this . apiService . pauseInstance ( id ) . subscribe ( ( result : number ) => {
163
+ this . apiService . pauseInstance ( id ) . subscribe ( ( result : HttpEvent < number > ) => {
163
164
console . log ( 'result' , result ) ;
164
165
} , err => {
165
166
console . log ( 'error pause instance' , err ) ;
@@ -172,7 +173,7 @@ export class TableAllComponent implements OnInit {
172
173
*/
173
174
public resumeInstance ( id : string ) : void {
174
175
175
- this . apiService . resumeInstance ( id ) . subscribe ( ( result : number ) => {
176
+ this . apiService . resumeInstance ( id ) . subscribe ( ( result : HttpEvent < number > ) => {
176
177
console . log ( 'result' , result ) ;
177
178
} , err => {
178
179
console . log ( 'error pause instance' , err ) ;
0 commit comments