more refactoring in feed service

This commit is contained in:
chsakell
2016-10-04 15:41:46 +03:00
parent 56759e0623
commit f8ad29f467
4 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
import { FeedService } from '../shared/services/feed.service';
import { Match, Feed } from '../shared/interfaces';
import { DataService } from '../shared/services/data.service';
import { ConnectionState } from '../shared/interfaces';
import { SignalRConnectionStatus } from '../shared/interfaces';
@Component({
selector: 'home',
@@ -23,7 +23,7 @@ export class HomeComponent implements OnInit {
self.feedService.connectionState
.subscribe(
connectionState => {
if (connectionState == ConnectionState.Connected) {
if (connectionState == SignalRConnectionStatus.Connected) {
console.log('Connected!');
self.loadMatches();
} else {