Project

General

Profile

« Previous | Next » 

Revision 59816

[Library|Trunk]

code clean up:
-remove app.* files from library
-remove unused imports, code, files (Old search pages for results, dataproviders, map search page, etc)
-remove Freeguard from modules
-unsubscribe all subscriptions
-Services: configuration, isvocabularies, user management: unsubscribe from app component or the component that uses them (clearSubscriptions())
-Fetchers: unsubscribe from the component that uses them (clearSubscriptions())

View differences:

selectedContexts.component.ts
50 50
  //The following need to be kept in case we have to save the current state
51 51
  @Input() public projects;
52 52
  @Input() public results;
53
  // @Input() public inlineEntity;
54 53
  @Input() componentClass:string = ""; //"" or "col-sm-6" for horizontal display (besides projects)
55 54
  @Input() show='home';
56 55
  @Input() title='Communities';
......
65 64
  todayDate = '';
66 65
  nextDate = '';
67 66

  
68
  showType(type){
69
     if(type != this.show){
70
       this.show = type;
71
       this.showChange.emit({
72
         value: this.show
73
       });
74
     }
75
    }
76

  
77

  
78 67
  removeContext(item:any){
79 68
    var index:number =this.contexts.indexOf(item);
80 69
     if (index > -1) {
......
85 74
      }
86 75

  
87 76
    }
88
  contextSelected($event) {
89
    // this.showsearch = false;
90
  }
91 77

  
92 78
}

Also available in: Unified diff