Project

General

Profile

« Previous | Next » 

Revision 52070

add ngx-json-ld library in package.json - requires install | remove skip(1) from communities response in app.component - show error message only once

View differences:

modules/uoa-admin-portal/branches/project-cli/package.json
32 32
    "jquery": "^3.2.1",
33 33
    "ng2-ckeditor": "1.1.9",
34 34
    "ngx-bootstrap": "^1.6.6",
35
    "ngx-json-ld": "0.1.6",
35 36
    "rxjs": "^5.4.2",
36 37
    "ts-md5": "^1.2.0",
37 38
    "zone.js": "^0.8.14"
modules/uoa-admin-portal/branches/project-cli/src/app/app.component.ts
49 49
                   localStorage.setItem('mining_backend_address', this.properties.miningBackendURL);
50 50
                   this.isPortalAdministrator = Session.isPortalAdministrator();
51 51
                 }
52
                 this.route.queryParams.skip(1).subscribe(data => {
52
                 this.route.queryParams.subscribe(data => {
53 53
                   this.communityId = ((data['communityId'])?data['communityId']:"");
54 54
                   this.communityType = null;
55 55
                   this.menuItems = [];
......
95 95

  
96 96
                     },
97 97
                     error => {
98
                       UIkit.notification({
99
                           message : '<strong>System error retrieving communities.<strong>',
100
                           status  : 'warning',
101
                           timeout : 3000,
102
                           pos     : 'top-center'
103
                        })
98
                       if( ( this.communityId && this.communityId != "") || window.location.pathname == "/"){
99
                         UIkit.notification({
100
                             message : '<strong>System error retrieving communities.<strong>',
101
                             status  : 'warning',
102
                             timeout : 3000,
103
                             pos     : 'top-center'
104
                          })
105
                       }
104 106
                     }
105 107
                   );
106 108
                  });

Also available in: Unified diff