Project

General

Profile

« Previous | Next » 

Revision 56514

[Admin|Trunk]: Add entities and pages on admin Tools.

View differences:

modules/uoa-admin-portal/trunk/src/app/pages/helpcontent/page-help-contents.component.html
125 125
                                            </td>
126 126
                                            <td>
127 127
                                                <div class="actions" href="#">
128
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit" type="image" (click)="editPageHelpContent(check.pageHelpContent._id)">
128
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit uk-margin-small-right" type="image" (click)="editPageHelpContent(check.pageHelpContent._id)">
129 129
                                                    <input title="Delete" src="assets/imgs/icn_trash.png" class="delete" type="image" (click)="confirmDeletePageHelpContent(check.pageHelpContent._id)">
130 130
                                                </div>
131 131
                                            </td>
modules/uoa-admin-portal/trunk/src/app/pages/community/communities.component.html
61 61
                                            </td>
62 62
                                            <td>
63 63
                                                <div class="actions" href="#">
64
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit" type="image" (click)="editCommunity(i)">
64
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit uk-margin-small-right" type="image" (click)="editCommunity(i)">
65 65
                                                    <input title="Delete" src="assets/imgs/icn_trash.png" class="delete" type="image" (click)="confirmDeleteCommunity(check.community._id)">
66 66
                                                </div>
67 67
                                            </td>
modules/uoa-admin-portal/trunk/src/app/pages/divhelpcontent/div-help-contents.component.html
126 126
                                            </td>
127 127
                                            <td>
128 128
                                                <div class="actions" href="#">
129
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit" type="image" (click)="editDivHelpContent(check.divHelpContent._id)">
129
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit uk-margin-small-right" type="image" (click)="editDivHelpContent(check.divHelpContent._id)">
130 130
                                                    <input title="Delete" src="assets/imgs/icn_trash.png" class="delete" type="image" (click)="confirmDeleteDivHelpContent(check.divHelpContent._id)">
131 131
                                                </div>
132 132
                                            </td>
modules/uoa-admin-portal/trunk/src/app/pages/divId/divIds.component.html
80 80
                                            </td>
81 81
                                            <td>
82 82
                                                <div class="actions" href="#">
83
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit" type="image" (click)="editDivId(i)">
83
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit uk-margin-small-right" type="image" (click)="editDivId(i)">
84 84
                                                    <input title="Delete" src="assets/imgs/icn_trash.png" class="delete" type="image" (click)="confirmDeleteDivId(check.divId._id)">
85 85
                                                </div>
86 86
                                            </td>
modules/uoa-admin-portal/trunk/src/app/pages/page/page-form.component.html
48 48
    <div class="form-group uk-grid">
49 49
        <label class="uk-width-2-3">Select if this page exists in OpenAIRE portal</label>
50 50
        <label class="uk-width-1-3 checkbox">
51
            <span style="font-weight: normal;">openaire</span>
51
            <span class="uk-margin-small-right" style="font-weight: normal;">openaire</span>
52 52
            <input tabindex="0" type="checkbox" formControlName="openaire">
53 53
        </label>
54 54
    </div>
55 55

  
56 56
    <div class="form-group uk-grid uk-margin-remove-top">
57
        <label class="uk-width-2-3">Select if this page exists in connect portals</label>
57
        <label class="uk-width-2-3">Select if this page exists in OpenAIRE Connect portal</label>
58 58
        <label class="uk-width-1-3 checkbox">
59
            <span style="font-weight: normal;">connect</span>
59
            <span class="uk-margin-small-right" style="font-weight: normal;">connect</span>
60 60
            <input tabindex="0" type="checkbox" formControlName="connect">
61 61
        </label>
62 62
    </div>
......
64 64
  <div class="form-group uk-grid uk-margin-remove-top">
65 65
    <label class="uk-width-2-3">Select if this page exists in connect portals (community specific)</label>
66 66
    <label class="uk-width-1-3 checkbox">
67
      <span style="font-weight: normal;">communities</span>
67
      <span class="uk-margin-small-right" style="font-weight: normal;">communities</span>
68 68
      <input tabindex="0" type="checkbox" formControlName="communities">
69 69
    </label>
70 70
  </div>
modules/uoa-admin-portal/trunk/src/app/pages/page/pages.component.html
14 14
                          <ul class="uk-nav uk-nav-dropdown"
15 15
                              [attr.uk-tooltip]="getSelectedPages().length == 0 ? 'pos:left; cls: uk-active' : 'cls: uk-invisible'"
16 16
                              title="Select at least one page">
17
                            <li><a [class]="getSelectedPages().length == 0 ? 'uk-disabled' : ''" (click)="togglePages(true, getSelectedPages())"><i></i> Activate </a></li>
18
                            <li><a [class]="getSelectedPages().length == 0 ? 'uk-disabled' : ''" (click)="togglePages(false, getSelectedPages())"><i></i> Deactivate </a></li>
17
                            <li *ngIf="!isPortalAdministrator"><a [class]="getSelectedPages().length == 0 ? 'uk-disabled' : ''" (click)="togglePages(true, getSelectedPages())"><i></i> Activate </a></li>
18
                            <li *ngIf="!isPortalAdministrator"><a [class]="getSelectedPages().length == 0 ? 'uk-disabled' : ''" (click)="togglePages(false, getSelectedPages())"><i></i> Deactivate </a></li>
19 19
                            <li  *ngIf="isPortalAdministrator"><a (click)="confirmDeleteSelectedPages()"><i></i> Delete </a></li>
20 20
                          </ul>
21 21
                      </div>
......
40 40
                <div class="contentPanel uk-margin-top">
41 41

  
42 42

  
43
                    <div class="uk-alert uk-alert-primary uk-margin-top-large">
43
                    <div *ngIf="!isPortalAdministrator" class="uk-alert uk-alert-primary uk-margin-top-large">
44 44
                      <div>
45 45
                        <span class="uk-margin-small-right uk-icon" uk-icon="warning"></span>
46 46
                        Disable a page to hide it from community dashboard portal. </div>
......
53 53
                        <div class="gwt-HTML">
54 54
                            <div class="users-list"> <!--"row" class removed"-->
55 55
                                <div class="col-md-12">
56

  
57
                                  <!-- <div class="filters marginBottom20">
58
                                      <div class="links form-group form-inline">
59
                                          <span>Filter by community:</span>
60
                                          <select class="uk-select uk-width-medium" (change)="filterByCommunity($event)">
61
                                              <option *ngFor="let community of communities" value="{{community.pid}}">{{community.name}}</option>
62
                                          </select>
63
                                      </div>
64
                                  </div> -->
65 56
                                  <table class="uk-table uk-table-striped">
66 57
                                    <thead>
67 58
                                        <tr>
68 59
                                            <th><input id="allPageCheckbox" type="checkbox" (change)="toggleCheckBoxes($event)"></th>
69 60
                                            <th>Name</th>
70
                                            <th>Change status</th>
61
                                            <th *ngIf="!isPortalAdministrator">Change status</th>
71 62
                                            <th *ngIf="!pagesType">Type</th>
72
                                            <th>Related Entities</th>
63
                                            <th *ngIf="!isPortalAdministrator">Related Entities</th>
73 64
                                            <th>Route</th>
74 65
                                            <th *ngIf="isPortalAdministrator" >Actions</th>
75
                                            <th *ngIf="!pagesType || (pagesType!='other' && pagesType!='html')" class="uk-text-center">Page help texts</th>
76
                                            <th *ngIf="pageWithDivIds && pageWithDivIds.length > 0" class="uk-text-center">Class help texts</th>
77
                                            <th *ngIf="!pagesType || pagesType=='html'" class="uk-text-center">Html Content</th>
66
                                            <th *ngIf="!isPortalAdministrator && (!pagesType || (pagesType!='other' && pagesType!='html'))" class="uk-text-center">Page help texts</th>
67
                                            <th *ngIf="!isPortalAdministrator && (pageWithDivIds && pageWithDivIds.length > 0)" class="uk-text-center">Class help texts</th>
68
                                            <th *ngIf="!isPortalAdministrator && (!pagesType || pagesType=='html')" class="uk-text-center">Html Content</th>
78 69
                                        </tr>
79 70
                                    </thead>
80 71
                                    <tbody >
......
85 76
                                            <td>
86 77
                                                <div class="name" href="#">{{check.page.name}}</div>
87 78
                                            </td>
88
                                            <td>
79
                                            <td *ngIf="!isPortalAdministrator">
89 80
                                              <mat-slide-toggle [checked]="check.page.isEnabled"
90 81
                                                                (change)="($event.source.checked = check.page.isEnabled);togglePages(!check.page.isEnabled,[check.page._id])"></mat-slide-toggle>
91 82
                                            </td>
92 83
                                            <td *ngIf="!pagesType">
93 84
                                                <div class="type" href="#">{{check.page.type}}</div>
94 85
                                            </td>
95
                                            <td>
86
                                            <td *ngIf="!isPortalAdministrator">
96 87
                                                <div class="entities" href="#">
97 88
                                                  <span *ngFor="let entity of check.page.entities let i=index">{{entity.name}}<span *ngIf="i<(check.page.entities.length-1)">, </span></span>
98 89
                                                </div>
......
103 94

  
104 95
                                            <td  *ngIf="isPortalAdministrator" >
105 96
                                                <div class="actions" href="#">
106
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit" type="image" (click)="editPage(i)">
97
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit uk-margin-small-right" type="image" (click)="editPage(i)">
107 98
                                                    <input title="Delete" src="assets/imgs/icn_trash.png" class="delete" type="image" (click)="confirmDeletePage(check.page._id)">
108 99
                                                </div>
109 100
                                            </td>
110
                                            <td *ngIf="!pagesType || (pagesType!='other' && pagesType!='html')" class="uk-text-center">
101
                                            <td *ngIf="!isPortalAdministrator && (!pagesType || (pagesType!='other' && pagesType!='html'))" class="uk-text-center">
111 102
                                              <a *ngIf="check.page.type != 'html' && check.page.type != 'other'" class="helpContents" [queryParams]="{communityId: selectedCommunityPid, pageId: check.page._id}" routerLink="/pageContents">add page contents</a>
112 103
                                              <span *ngIf="check.page.type == 'html' || check.page.type == 'other'">-</span>
113 104
                                            </td>
114
                                            <td *ngIf="pageWithDivIds && pageWithDivIds.length > 0" class="uk-text-center">
105
                                            <td *ngIf="!isPortalAdministrator && (pageWithDivIds && pageWithDivIds.length > 0)" class="uk-text-center">
115 106
                                              <a *ngIf="pageWithDivIds.includes(check.page._id)" class="classHelpContents" [queryParams]="{communityId: selectedCommunityPid, pageId: check.page._id}" routerLink="/classContents">add class contents</a>
116 107
                                              <span *ngIf="!pageWithDivIds.includes(check.page._id)">-</span>
117 108
                                            </td>
118
                                            <td *ngIf="!pagesType || pagesType=='html'" class="uk-text-center">
109
                                            <td *ngIf="!isPortalAdministrator && (!pagesType || pagesType=='html')" class="uk-text-center">
119 110
                                              <a *ngIf="check.page.type == 'html'" class="htmlContents" [queryParams]="{communityId: selectedCommunityPid, pageId: check.page._id}" routerLink="/htmlPageContent/edit">edit html contents</a>
120 111
                                              <span *ngIf="check.page.type != 'html'">-</span>
121 112
                                            </td>
modules/uoa-admin-portal/trunk/src/app/pages/page/pages.component.ts
72 72

  
73 73
               this.selectedCommunityPid = params['communityId'];
74 74
               this.applyCommunityFilter(this.selectedCommunityPid);
75
               this.isPortalAdministrator = Session.isPortalAdministrator();
75
               this.isPortalAdministrator = Session.isPortalAdministrator() && !this.selectedCommunityPid;
76 76

  
77 77
               //this.getCommunities();
78 78
             });
......
95 95
        if(this.pagesType) {
96 96
          parameters = "?page_type="+this.pagesType;
97 97
        }
98
        this._helpContentService.getCommunityPages(community_pid, parameters, this.properties.adminToolsAPIURL).subscribe(
98
        if(community_pid) {
99
          this._helpContentService.getCommunityPages(community_pid, parameters, this.properties.adminToolsAPIURL).subscribe(
99 100
            pages => {
100 101
              this.pagesReturned(pages);
101 102
              //if(!this.pagesType || this.pagesType == "link") {
102
                this.getPagesWithDivIds(community_pid);
103
              this.getPagesWithDivIds(community_pid);
103 104
              //} else {
104
                //this.showLoading = false;
105
              //this.showLoading = false;
105 106
              //}
106 107
            },
107 108
            error => this.handleError('System error retrieving pages', error)
108
        );
109
          );
110
        } else {
111
          this._helpContentService.getPages(this.properties.adminToolsAPIURL, null).subscribe(
112
            pages => {
113
              this.pagesReturned(pages);
114
              this.showLoading = false;
115
            },
116
            error => this.handleError('System error retrieving pages', error)
117
          );
118
        }
109 119
      }
110 120
    }
111 121

  
......
128 138

  
129 139
      if(pages) {
130 140
        pages.forEach(_ => {
141
          console.log(_);
131 142
          this.checkboxes.push(<CheckPage>{page : _, checked : false});
132 143
        });
133 144
      }
modules/uoa-admin-portal/trunk/src/app/pages/page/pages.module.ts
1 1
import { NgModule } from '@angular/core';
2 2
import {RouterModule} from '@angular/router';
3 3
import {CommonModule} from '@angular/common';
4
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
5 4
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
6 5
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
7 6
import {FABModule} from '../../utils/fabModule.module';
......
10 9
import {PageFormComponent} from './page-form.component';
11 10
import {PagesRoutingModule} from './pages-routing.module';
12 11
import {MatSlideToggleModule} from '@angular/material';
12
import {IsCommunityOrAdmin} from '../../openaireLibrary/connect/communityGuard/isCommunityOrAdmin';
13 13

  
14 14
@NgModule({
15 15
  imports: [
......
17 17
    AlertModalModule, ReactiveFormsModule, PagesRoutingModule, MatSlideToggleModule
18 18
  ],
19 19
    declarations: [PagesComponent, PageFormComponent],
20
    providers: [IsCommunity, ConnectAdminLoginGuard],
20
    providers: [IsCommunityOrAdmin, ConnectAdminLoginGuard],
21 21
    exports: [PagesComponent]
22 22
})
23 23
export class PagesModule { }
modules/uoa-admin-portal/trunk/src/app/pages/page/pages-routing.module.ts
3 3
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
4 4
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
5 5
import {PagesComponent} from './pages.component';
6
import {IsCommunityOrAdmin} from '../../openaireLibrary/connect/communityGuard/isCommunityOrAdmin';
6 7

  
7 8
@NgModule({
8 9
    imports: [
9 10
        RouterModule.forChild([
10
            { path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: PagesComponent}
11
            { path: '', canActivate: [IsCommunityOrAdmin, ConnectAdminLoginGuard], component: PagesComponent}
11 12
        ])
12 13
    ]
13 14
})
modules/uoa-admin-portal/trunk/src/app/pages/entity/entities-routing.module.ts
1 1
import { NgModule } from '@angular/core';
2 2
import {RouterModule} from '@angular/router';
3
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
4 3
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
5 4
import {EntitiesComponent} from './entities.component';
5
import {IsCommunityOrAdmin} from '../../openaireLibrary/connect/communityGuard/isCommunityOrAdmin';
6 6

  
7 7
@NgModule({
8 8
    imports: [
9 9
        RouterModule.forChild([
10
            { path: '', canActivate: [IsCommunity, ConnectAdminLoginGuard], component: EntitiesComponent}
10
            { path: '', canActivate: [IsCommunityOrAdmin, ConnectAdminLoginGuard], component: EntitiesComponent}
11 11
        ])
12 12
    ]
13 13
})
modules/uoa-admin-portal/trunk/src/app/pages/entity/entities.component.html
15 15
                        <ul class="uk-nav uk-nav-dropdown"
16 16
                            [attr.uk-tooltip]="getSelectedEntities().length == 0 ? 'pos:left; cls: uk-active' : 'cls: uk-invisible'"
17 17
                            title="Select at least one entity">
18
                          <li><a [class]="getSelectedEntities().length == 0 ? 'uk-disabled' : ''" (click)="toggleEntities(true, getSelectedEntities())"><i></i> Activate </a></li>
19
                          <li><a [class]="getSelectedEntities().length == 0 ? 'uk-disabled' : ''" (click)="toggleEntities(false, getSelectedEntities())"><i></i> Deactivate </a></li>
18
                          <li *ngIf="!isPortalAdministrator"><a [class]="getSelectedEntities().length == 0 ? 'uk-disabled' : ''" (click)="toggleEntities(true, getSelectedEntities())"><i></i> Activate </a></li>
19
                          <li *ngIf="!isPortalAdministrator"><a [class]="getSelectedEntities().length == 0 ? 'uk-disabled' : ''" (click)="toggleEntities(false, getSelectedEntities())"><i></i> Deactivate </a></li>
20 20
                          <li *ngIf="isPortalAdministrator"><a [class]="getSelectedEntities().length == 0 ? 'uk-disabled' : ''" (click)="confirmDeleteSelectedEntities()"><i></i> Delete </a></li>
21 21
                        </ul>
22 22
                      </div>
......
39 39
        <div class="content-wrapper" id="contentWrapper">
40 40
            <div>
41 41
                <div class="contentPanel  uk-margin-top">
42
                  <div class="uk-alert uk-alert-primary uk-margin-top-large">
42
                  <div *ngIf="!isPortalAdministrator"  class="uk-alert uk-alert-primary uk-margin-top-large">
43 43
                    <div>
44 44
                      <span class="uk-margin-small-right uk-icon" uk-icon="warning"></span>
45 45
                      Disable an entity to hide it from community dashboard portal. </div>
......
59 59
                                        <tr>
60 60
                                            <th><input id="allEntityCheckbox" type="checkbox" (change)="toggleCheckBoxes($event)"></th>
61 61
                                            <th>Name</th>
62
                                            <th>Change status</th>
62
                                            <th *ngIf="!isPortalAdministrator">Change status</th>
63 63
                                            <th *ngIf="isPortalAdministrator">Actions</th>
64 64
                                        </tr>
65 65
                                    </thead>
......
71 71
                                            <td>
72 72
                                                <div class="name" href="#">{{check.entity.name}}</div>
73 73
                                            </td>
74
                                            <td>
74
                                            <td *ngIf="!isPortalAdministrator">
75 75
                                              <mat-slide-toggle [checked]="check.entity.isEnabled"
76 76
                                                                (change)="($event.source.checked = check.entity.isEnabled);toggleEntities(!check.entity.isEnabled,[check.entity._id])"></mat-slide-toggle>
77 77
                                            </td>
78 78
                                            <td *ngIf="isPortalAdministrator">
79 79
                                                <div class="actions" href="#">
80
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit" type="image" (click)="editEntity(i)" value="Edit">
80
                                                    <input title="Edit" src="assets/imgs/icn_edit.png" class="edit uk-margin-small-right" type="image" (click)="editEntity(i)" value="Edit">
81 81
                                                    <input title="Delete" src="assets/imgs/icn_trash.png" class="delete" type="image" (click)="confirmDeleteEntity(check.entity._id)" value="Delete">
82 82
                                                </div>
83 83
                                            </td>
modules/uoa-admin-portal/trunk/src/app/pages/entity/entities.component.ts
66 66

  
67 67
             this.selectedCommunityPid = params['communityId'];
68 68
             this.applyCommunityFilter(this.selectedCommunityPid);
69
             this.isPortalAdministrator = Session.isPortalAdministrator();
69
             this.isPortalAdministrator = Session.isPortalAdministrator() && !this.selectedCommunityPid;
70 70
           });
71 71
      });
72 72

  
......
83 83
        this.showLoading = true;
84 84
        this.updateErrorMessage = '';
85 85
        this.errorMessage = '';
86
        if(community_pid) {
87
          this._helpContentService.getCommunityEntities(community_pid, this.properties.adminToolsAPIURL).subscribe(
88
            entities => {
89
              this.entities = entities;
90
              this.checkboxes = [];
86 91

  
87
        this._helpContentService.getCommunityEntities(community_pid, this.properties.adminToolsAPIURL).subscribe(
92
              let self = this;
93
              entities.forEach(_ => {
94
                self.checkboxes.push(<CheckEntity>{entity: _, checked: false});
95
              });
96

  
97
              this.showLoading = false;
98
            },
99
            error => this.handleError('System error retrieving entities', error));
100
        } else {
101
          this._helpContentService.getEntities(this.properties.adminToolsAPIURL).subscribe(
88 102
            entities => {
89
                this.entities = entities;
90
                this.checkboxes = [];
103
              this.entities = entities;
104
              this.checkboxes = [];
91 105

  
92
                let self = this;
93
                entities.forEach(_ => {
94
                    self.checkboxes.push(<CheckEntity>{entity : _, checked : false});
95
                });
96

  
97
                this.showLoading = false;
98
        },
99
        error => this.handleError('System error retrieving entities', error));
106
              let self = this;
107
              entities.forEach(_ => {
108
                self.checkboxes.push(<CheckEntity>{entity: _, checked: false});
109
              });
110
              this.showLoading = false;
111
            },
112
            error => this.handleError('System error retrieving community entities', error));
113
        }
100 114
      }
101 115
    }
102 116

  
modules/uoa-admin-portal/trunk/src/app/pages/entity/entities.module.ts
1 1
import { NgModule } from '@angular/core';
2 2
import {RouterModule} from '@angular/router';
3 3
import {CommonModule} from '@angular/common';
4
import {IsCommunity} from '../../openaireLibrary/connect/communityGuard/isCommunity.guard';
5 4
import {ConnectAdminLoginGuard} from '../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard';
6 5
import {EntitiesComponent} from './entities.component';
7 6
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
......
10 9
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
11 10
import {EntitiesRoutingModule} from './entities-routing.module';
12 11
import {MatSlideToggleModule} from '@angular/material';
12
import {IsCommunityOrAdmin} from '../../openaireLibrary/connect/communityGuard/isCommunityOrAdmin';
13 13

  
14 14
@NgModule({
15 15
  imports: [
......
17 17
    AlertModalModule, ReactiveFormsModule, EntitiesRoutingModule, MatSlideToggleModule
18 18
  ],
19 19
    declarations: [EntitiesComponent, EntityFormComponent],
20
    providers: [IsCommunity, ConnectAdminLoginGuard],
20
    providers: [IsCommunityOrAdmin, ConnectAdminLoginGuard],
21 21
    exports: [EntitiesComponent]
22 22
})
23 23
export class EntitiesModule { }
modules/uoa-admin-portal/trunk/src/app/app.component.ts
170 170
          items: []
171 171
        }
172 172
      );
173
      adminTools.items.push(  {
173
      adminTools.items.push({
174
          rootItem: new MenuItem('pages', 'Pages', '/pages',
175
            '/pages', false, [], [], null),
176
          items: []
177
        }
178
      );
179
      adminTools.items.push({
180
          rootItem: new MenuItem('entities', 'Entities', '/entities',
181
            '/entities', false, [], [], null),
182
          items: []
183
        }
184
      );
185
      this.sideMenuItems.push(adminTools);
186
      this.sideMenuItems.push(  {
174 187
        rootItem: new MenuItem('communities', 'Manage Communities', '/',
175 188
          '/', false, [], [], null),
176 189
        items: [],
190
        ukIcon: 'cog'
177 191
      });
178
      adminTools.items.push(  {
192
      this.sideMenuItems.push(  {
179 193
        rootItem: new MenuItem('communities', 'Manage Explore', '',
180 194
          '/dashboard', false, [], [], {communityId: 'openaire'}),
181 195
        items: [],
196
        ukIcon: 'cog'
182 197
      });
183
      adminTools.items.push(  {
198
      this.sideMenuItems.push(  {
184 199
        rootItem: new MenuItem('communities', 'Manage Connect', '',
185 200
          '/dashboard', false, [], [], {communityId: 'connect'}),
186 201
        items: [],
202
        ukIcon: 'cog'
187 203
      });
188
      this.sideMenuItems.push(adminTools);
189 204
    } else if (this.communityId && this.communityId !== '') {
190 205
      this.sideMenuItems.push({
191 206
        rootItem: new MenuItem('overview', 'Overview', '/dashboard',

Also available in: Unified diff