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:

ClaimEntityResultMetadata.component.ts
1 1
import {Component, Input} from '@angular/core';
2 2
import {ClaimEntity} from '../../claim-utils/claimHelper.class';
3
import {StringUtils} from "../../../utils/string-utils.class";
4 3

  
5 4
@Component({
6 5
  selector: 'claim-result-metadata',
......
51 50
    return array.join("; ");
52 51
  }
53 52

  
54
  addStringToNumber(str: string, num: number) {
55
    return (+str) + num;
56
  }
57

  
58 53
  getProjectDurationMessage(result: ClaimEntity) {
59 54
    if(!result.warningMessages){
60 55
      return null;
......
67 62
    return null;
68 63
  }
69 64

  
70
  // getEmbargoEndDateMessage(result: ClaimEntity) {
71
  //   for (var message of result.warningMessages) {
72
  //     if (message.type == "embargoEndDate") {
73
  //       return "Embargo end date must be later than published date";
74
  //     }
75
  //   }
76
  //   return null;
77
  // }
78 65

  
79 66
}

Also available in: Unified diff