From dbba2171dbc0a3bf36d918e36f62212c67168efb Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Fri, 28 Oct 2022 18:37:17 +0300 Subject: [PATCH] refactor Go functions to GoFunc names --- src/app/components/games-bar/games-bar.component.ts | 6 +++--- .../main/main-menu/menu-games/menu-games.component.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/components/games-bar/games-bar.component.ts b/src/app/components/games-bar/games-bar.component.ts index c57cb42..dd6d390 100644 --- a/src/app/components/games-bar/games-bar.component.ts +++ b/src/app/components/games-bar/games-bar.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { Title } from '@angular/platform-browser'; import { Game } from 'src/app/interfaces/game.interface'; -import { GetGames } from 'src/app/services/go'; +import { GoGetGames } from 'src/app/services/go'; @Component({ selector: 'app-games-bar', @@ -19,7 +19,7 @@ export class GamesBarComponent implements OnInit { } getGames() { - if (GetGames == undefined){ + if (GoGetGames == undefined){ var fakeGame: Game = { gameId: "Fake Game", title: "Fake game", @@ -30,7 +30,7 @@ export class GamesBarComponent implements OnInit { this.activeGame = this.games[0] } else{ - GetGames().then((value) => { + GoGetGames().then((value) => { console.log(value); this.games = value; if (this.games.length > 0){ diff --git a/src/app/components/main/main-menu/menu-games/menu-games.component.ts b/src/app/components/main/main-menu/menu-games/menu-games.component.ts index 37be063..92b0b54 100644 --- a/src/app/components/main/main-menu/menu-games/menu-games.component.ts +++ b/src/app/components/main/main-menu/menu-games/menu-games.component.ts @@ -1,6 +1,6 @@ import { Component, OnInit } from '@angular/core'; import { Game } from 'src/app/interfaces/game.interface' -import { GetGames } from 'src/app/services/go'; +import { GoGetGames } from 'src/app/services/go'; @Component({ selector: 'app-menu-games', @@ -27,11 +27,11 @@ export class MenuGamesComponent implements OnInit { constructor() { } ngOnInit(): void { - if (GetGames == undefined){ + if (GoGetGames == undefined){ this.games = this.fakeGames } else{ - GetGames().then((value) => { + GoGetGames().then((value) => { console.log(value); this.games = value; });