Project

General

Profile

« Previous | Next » 

Revision 56949

Fixed the events list page for new publication and subject topics

View differences:

content-events-of-repo-eventslist.component.ts
22 22
  eventsPageInitialized = false;
23 23

  
24 24
  topic = '';
25
  lastTopicEntry = '';
25 26
  correctTopic = '';
26 27
  repoName = '';
27 28

  
......
73 74
  getParams() {
74 75
    this.topic = this.route.snapshot.paramMap.get('topic');
75 76
    console.log(`my topic is: ${this.topic}`);
77
    this.lastTopicEntry = this.topic.substring(this.topic.lastIndexOf('|') + 1).toLowerCase();
78
    this.lastTopicEntry = this.replaceAll(this.lastTopicEntry, '_', ' ');
76 79
    this.getCorrectTopic();
77 80
    this.repoName = this.route.snapshot.paramMap.get('name');
78 81
  }
79 82

  
83
  replaceAll(str, find, replace) {
84
    return str.replace(new RegExp(find, 'g'), replace);
85
  }
86

  
80 87
  initQuery() {
81 88
    this.advanceSearch = {
82 89
      datasource: this.repoName,

Also available in: Unified diff