|
|
|
@ -99,6 +99,8 @@ export class DashboardPageComponent implements OnDestroy, OnInit { |
|
|
|
public callsCurrent = 0; |
|
|
|
public callsMax = 0; |
|
|
|
|
|
|
|
public isLoadingLog = false; |
|
|
|
|
|
|
|
constructor( |
|
|
|
public readonly appsState: AppsState, |
|
|
|
public readonly authState: AuthService, |
|
|
|
@ -209,9 +211,15 @@ export class DashboardPageComponent implements OnDestroy, OnInit { |
|
|
|
} |
|
|
|
|
|
|
|
public downloadLog() { |
|
|
|
this.isLoadingLog = true; |
|
|
|
|
|
|
|
this.usagesService.getLog(this.appsState.appName) |
|
|
|
.subscribe(buffer => { |
|
|
|
saveAs(buffer, 'Log.csv'); |
|
|
|
}, () => { |
|
|
|
this.isLoadingLog = false; |
|
|
|
}, () => { |
|
|
|
this.isLoadingLog = false; |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|