refactor Go functions to GoFunc names

This commit is contained in:
cyber-dream 2022-10-28 18:37:17 +03:00
parent c5503ef282
commit dbba2171db
2 changed files with 6 additions and 6 deletions

View File

@ -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){

View File

@ -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;
});