diff --git a/src/app/components/main/sections/session-page/session-page.component.html b/src/app/components/main/sections/session-page/session-page.component.html
index cfccea9..d23e0d7 100644
--- a/src/app/components/main/sections/session-page/session-page.component.html
+++ b/src/app/components/main/sections/session-page/session-page.component.html
@@ -6,7 +6,7 @@
Session page will be here
-
+
Run session
diff --git a/src/app/components/main/sections/session-page/session-page.component.ts b/src/app/components/main/sections/session-page/session-page.component.ts
index edf2c66..dcc3dec 100644
--- a/src/app/components/main/sections/session-page/session-page.component.ts
+++ b/src/app/components/main/sections/session-page/session-page.component.ts
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
+import { GoRunSession } from 'src/app/services/go';
@Component({
selector: 'app-session-page',
@@ -12,4 +13,8 @@ export class SessionPageComponent implements OnInit {
ngOnInit(): void {
}
+ RunSession(){
+ GoRunSession("gmod-test")
+ }
+
}
diff --git a/src/app/services/go.ts b/src/app/services/go.ts
index 47482b1..71e3acd 100644
--- a/src/app/services/go.ts
+++ b/src/app/services/go.ts
@@ -5,6 +5,7 @@ export interface Go extends Window {
GoGetGames: () => Promise;
GoGetSessions: () => Promise
GoRunGame: (gameId: string) => void;
+ GoRunSession: (sessionId: string) => void;
GoWebViewInit: () => void;
}
@@ -13,7 +14,7 @@ export interface GoCallback extends Window {
GoChangeRoute: (value: string) => void;
}
-let { GoGetGames, GoRunGame, GoGetSessions, GoWebViewInit } = window as unknown as Go;
+let { GoGetGames, GoRunGame, GoGetSessions, GoRunSession, GoWebViewInit } = window as unknown as Go;
let { SetVersion, GoChangeRoute } = window as unknown as GoCallback;
let w = window as unknown as GoCallback;
@@ -36,4 +37,4 @@ let w = window as unknown as GoCallback;
document.dispatchEvent(event);
};
-export { GoGetGames, GoGetSessions, SetVersion, GoRunGame, GoChangeRoute, GoWebViewInit };
+export { GoGetGames, GoGetSessions, SetVersion, GoRunGame, GoChangeRoute, GoWebViewInit, GoRunSession };