Project

General

Profile

« Previous | Next » 

Revision 60536

[Admin | New-UI]: Finish personal-info. Delete old curator component

View differences:

manage-user-notifications.service.ts
14 14

  
15 15
    getUserNotifications(properties: EnvProperties, pid: string) {
16 16
      let url: string = properties.adminToolsAPIURL +  properties.adminToolsPortalType + '/'+ pid + '/notifications';
17
        return this.http.get<UserNotificationsRights>(url, CustomOptions.registryOptions())//.map(res => <any> res.json())
18
                                 // .pipe(map(res => this.parseUserNotifications(res, email)));
17
        return this.http.get<UserNotificationsRights>(url, CustomOptions.registryOptions());
19 18
    }
20 19

  
21 20
    updateUserNotifications(properties: EnvProperties, pid: string, userNotificationsRights: any) {
......
23 22
        //let options = new RequestOptions({headers: headers});
24 23
        let body = JSON.stringify(userNotificationsRights);
25 24
        let url: string = properties.adminToolsAPIURL +  properties.adminToolsPortalType + '/' + pid + '/notifications';
26
        return this.http.post(url, body, CustomOptions.getAuthOptionsWithBody());
25
        return this.http.post(url, body, CustomOptions.registryOptions());
27 26
                        //.do(request => console.log("Insert Response:"+request.status));
28 27
    }
29 28

  

Also available in: Unified diff