ui: session specific clickmap, return method
This commit is contained in:
parent
f1e5c858f1
commit
09c3a217cb
2 changed files with 9 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ export default class SessionStore {
|
|||
|
||||
fetchSessionClickmap = async (sessionId: string, params: any) => {
|
||||
try {
|
||||
const data = await sessionService.getSessionClickmap(sessionId, params);
|
||||
const data = await sessionService.getSessionClickMap(sessionId, params);
|
||||
this.insights = data;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
|
|
|||
|
|
@ -106,6 +106,14 @@ export default class SettingsService {
|
|||
.catch(Promise.reject);
|
||||
}
|
||||
|
||||
getSessionClickMap(sessionId: string, params = {}): Promise<any[]> {
|
||||
return this.client
|
||||
.post(`/sessions/${sessionId}/clickmaps`, params)
|
||||
.then((r) => r.json())
|
||||
.then((j) => j.data || [])
|
||||
.catch(Promise.reject);
|
||||
}
|
||||
|
||||
getRecordingStatus(): Promise<any> {
|
||||
return this.client
|
||||
.get('/check-recording-status')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue