Project

General

Profile

« Previous | Next » 

Revision 50600

css changes - committing to check why css is not loading

View differences:

content-events-of-repository.component.ts
2 2
import { RepositoryService } from '../../services/repository.service';
3 3
import { Topic } from '../../domain/typeScriptClasses';
4 4
import { ActivatedRoute } from '@angular/router';
5
import { loadingTopicsError } from '../../domain/shared-messages';
5
import { loadingTopics, loadingTopicsError } from '../../domain/shared-messages';
6 6
import { BrokerService } from '../../services/broker.service';
7 7

  
8 8
@Component ({
......
16 16
  noDatasources: boolean;
17 17
  showSpinner: boolean;
18 18
  errorMessage: string;
19
  loadingMessage: string;
19 20

  
20 21
  constructor(
21 22
    private route: ActivatedRoute,
......
29 30
  getTopics(): void {
30 31
    let name = this.route.snapshot.paramMap.get('name');
31 32
    this.showSpinner = true;
33
    this.loadingMessage = loadingTopics;
32 34
    this.brokerService.getTopicsForDataSource(name)
33 35
      .subscribe(
34 36
        topics => {
35 37
          this.repoTopics = topics;
36 38
          if(!this.repoTopics.length) this.noDatasources=true;
37
          this.showSpinner = false;
38 39
        },
39
        error => {
40
          console.log(error);
41
          this.errorMessage = loadingTopicsError;
40
        error => console.log(error),
41
        () => {
42 42
          this.showSpinner = false;
43
          this.loadingMessage = '';
43 44
        }
44 45
      );
45 46
  }

Also available in: Unified diff