Project

General

Profile

« Previous | Next » 

Revision 59451

[use-UoaAdminToolsLibrary | Admin]:
1. affiliations.component.html: Add "urlPrefix" for logo url in src of an image (add "//" prefix, when url does not start with protocol (http, https, //)).
2. affiliations.component.ts: In "getOrganizationsPageId()", "getCommunityPageByRoute()" returns one Page instance, not array of <Page>.
3. div-help-content-form.component.html: Add empty <option> in <select> of pages, when no page is selected.
4. div-help-content-form.component.ts & help-content.service.ts: Rename "getDivIdsFullByPageAndPortal()" to "getDivIdsFullByPortal()" | Add param "page" when it is available, to specify page too.

View differences:

help-content.service.ts
111 111
      .pipe(catchError(this.handleError));
112 112
  }
113 113

  
114
  getDivIdsFullByPageAndPortal(page_id: string, helpContentUrl:string, pid: string) {
115
    let parameters: string = "?&page="+page_id;
114
  getDivIdsFullByPortal(page_id: string, helpContentUrl:string, pid: string) {
115
    let parameters: string = page_id ? "?&page="+page_id : "";
116 116

  
117 117
    return this.http.get<Array<DivId>>(helpContentUrl + properties.adminToolsPortalType + '/'+pid + '/div/full'+parameters)
118 118
      .pipe(catchError(this.handleError));

Also available in: Unified diff